summaryrefslogtreecommitdiffstats
path: root/manifests/brick.pp
diff options
context:
space:
mode:
authorJames Shubin <james@shubin.ca>2014-03-06 00:19:06 -0500
committerJames Shubin <james@shubin.ca>2014-03-16 22:38:47 -0400
commit12df64beeb2f2bf003c86ca39ddb368a53afafee (patch)
treec2398c8fa16f810d6845b0d4d749085cf2026f13 /manifests/brick.pp
parent06454f4f4d61d9c77fe1155c3c9e7de70fbc43b8 (diff)
downloadpuppet-gluster-12df64beeb2f2bf003c86ca39ddb368a53afafee.tar.gz
puppet-gluster-12df64beeb2f2bf003c86ca39ddb368a53afafee.tar.xz
puppet-gluster-12df64beeb2f2bf003c86ca39ddb368a53afafee.zip
Allow specifying brick device and other parameters in gluster::simple.
This patch adds support to specify the brick device values as a hash. It also allows for separate defaults that apply to the whole cluster.
Diffstat (limited to 'manifests/brick.pp')
-rw-r--r--manifests/brick.pp5
1 files changed, 3 insertions, 2 deletions
diff --git a/manifests/brick.pp b/manifests/brick.pp
index 14d9abb..3957e0c 100644
--- a/manifests/brick.pp
+++ b/manifests/brick.pp
@@ -35,7 +35,8 @@ define gluster::brick(
$xfs_inode64 = false,
$xfs_nobarrier = false,
$force = false, # if true, this will overwrite any xfs fs it sees, useful for rebuilding gluster and wiping data. NOTE: there are other safeties in place to stop this.
- $areyousure = false # do you allow puppet to do dangerous things ?
+ $areyousure = false, # do you allow puppet to do dangerous things ?
+ $comment = ''
) {
include gluster::brick::base
include gluster::vardir
@@ -136,7 +137,7 @@ define gluster::brick(
$dev2 = "/dev/${lvm_vgname}/${lvm_lvname}"
} else {
- $dev2 = "${dev1}", # pass through, because not using lvm
+ $dev2 = "${dev1}" # pass through, because not using lvm
}
#