summaryrefslogtreecommitdiffstats
path: root/manifests/volume.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/volume.pp')
-rw-r--r--manifests/volume.pp4
1 files changed, 3 insertions, 1 deletions
diff --git a/manifests/volume.pp b/manifests/volume.pp
index 5e8b7e1..d16db55 100644
--- a/manifests/volume.pp
+++ b/manifests/volume.pp
@@ -71,7 +71,8 @@ define gluster::volume(
}
}
- $collected_bricks = split(getvar("gluster_brick_group_${group}"), ',')
+ $gluster_brick_group_fact = getvar("gluster_brick_group_${group}")
+ $collected_bricks = split($gluster_brick_group_fact, ',')
$valid_bricks = type($bricks) ? {
'boolean' => $bricks ? {
true => $collected_bricks, # an array...
@@ -318,6 +319,7 @@ define gluster::volume(
source => "${zone}", # use our source zone
before => Service['glusterd'],
}
+ }
# fsm variables and boilerplate
$statefile = "${vardir}/volume/fsm/${name}/state"