summaryrefslogtreecommitdiffstats
path: root/manifests/volume.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/volume.pp')
-rw-r--r--manifests/volume.pp7
1 files changed, 7 insertions, 0 deletions
diff --git a/manifests/volume.pp b/manifests/volume.pp
index 645c090..f946a54 100644
--- a/manifests/volume.pp
+++ b/manifests/volume.pp
@@ -24,6 +24,7 @@ define gluster::volume(
$vip = '', # vip of the cluster (optional but recommended)
$ping = true, # do we want to include fping checks ?
$settle = true, # do we want to run settle checks ?
+ $setgroup = '', # pick a volume property group to set, eg: virt
$start = undef # start volume ? true, false (stop it) or undef
) {
include gluster::xml
@@ -411,6 +412,12 @@ define gluster::volume(
alias => "gluster-volume-fsm-watch-${name}",
}
}
+
+ # set a group of volume properties
+ if "${setgroup}" != '' {
+ gluster::volume::property::group { "${name}#${setgroup}":
+ }
+ }
}
# vim: ts=8