Style related updates
This commit contains several style related updates: - aligns class parameters for readibility - removes trailing class params for 2.6.x compat - deletes accidentally checked in swp file
This commit is contained in:
Binary file not shown.
@@ -7,10 +7,10 @@
|
||||
# - formats the file to be an xfs device and mounts it as a loopback device at /srv/node/$name
|
||||
# - sets up each mount point as a swift endpoint
|
||||
define swift::storage::loopback(
|
||||
$base_dir = '/srv/loopback-device',
|
||||
$base_dir = '/srv/loopback-device',
|
||||
$mnt_base_dir = '/srv/node',
|
||||
$byte_size = '1024',
|
||||
$seek = '25000'
|
||||
$byte_size = '1024',
|
||||
$seek = '25000'
|
||||
) {
|
||||
|
||||
if(!defined(File[$base_dir])) {
|
||||
@@ -39,7 +39,7 @@ define swift::storage::loopback(
|
||||
mnt_base_dir => $mnt_base_dir,
|
||||
byte_size => $byte_size,
|
||||
subscribe => Exec["create_partition-${name}"],
|
||||
loopback => true,
|
||||
loopback => true,
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -6,7 +6,7 @@
|
||||
define swift::storage::mount(
|
||||
$device,
|
||||
$mnt_base_dir = '/srv/node',
|
||||
$loopback = false,
|
||||
$loopback = false
|
||||
) {
|
||||
if($loopback){
|
||||
$options = 'noatime,nodiratime,nobarrier,logbufs=8,loop'
|
||||
|
@@ -12,9 +12,9 @@
|
||||
# It is recommened to use 1024 to ensure that the metadata can fit in a single inode.
|
||||
define swift::storage::xfs(
|
||||
$device,
|
||||
$byte_size = '1024',
|
||||
$byte_size = '1024',
|
||||
$mnt_base_dir = '/srv/node',
|
||||
$loopback = false,
|
||||
$loopback = false
|
||||
) {
|
||||
|
||||
include swift::xfs
|
||||
|
Reference in New Issue
Block a user