summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Deygas <Vincent.Deygas@rewardgateway.com>2015-01-20 09:40:39 +0000
committerJames Shubin <james@shubin.ca>2015-01-20 05:56:08 -0500
commit91d788614bb21ca42a8f1508472bc4afb8eaa2df (patch)
treec834ef94a055573d24d40af6adc1fe1bdb101fa6
parent66ecd6a9035f5209b9a990de9ab1bbd315c7e428 (diff)
downloadpuppet-gluster-91d788614bb21ca42a8f1508472bc4afb8eaa2df.zip
puppet-gluster-91d788614bb21ca42a8f1508472bc4afb8eaa2df.tar.gz
puppet-gluster-91d788614bb21ca42a8f1508472bc4afb8eaa2df.tar.xz
Added gluster service dependency to "volume stop" command.
This is needed in order to run "onlyif" option properly.
-rw-r--r--manifests/volume.pp2
1 files changed, 1 insertions, 1 deletions
diff --git a/manifests/volume.pp b/manifests/volume.pp
index 69ca38c..bfd470f 100644
--- a/manifests/volume.pp
+++ b/manifests/volume.pp
@@ -326,7 +326,7 @@ define gluster::volume(
logoutput => on_failure,
onlyif => "${::gluster::params::program_gluster} volume status ${name}", # returns true if started
require => $settled ? { # require if type exists
- false => undef,
+ false => Service["${::gluster::params::service_glusterd}"],
default => Exec["gluster-volume-create-${name}"],
},
alias => "gluster-volume-stop-${name}",