summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-03-09 15:02:11 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-03-09 15:02:11 -0300
commit83474b6a09f8579f484ae11012727a1d261cc01c (patch)
treeebacb66e81484a9fb35d4b68272a78828539d8fd
parent6ff01084a8feb2644b8f76660fe0ac384aa3e54c (diff)
downloadpuppet-etherpad-83474b6a09f8579f484ae11012727a1d261cc01c.tar.gz
puppet-etherpad-83474b6a09f8579f484ae11012727a1d261cc01c.tar.bz2
Fixing requirements when the service is absent
-rw-r--r--manifests/init.pp7
1 files changed, 5 insertions, 2 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 82ce3f8..d517449 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -118,7 +118,10 @@ class etherpad(
ensure => $service,
hasrestart => true,
hasstatus => true,
- require => [ File['/etc/init.d/etherpad-lite', '/var/lib/etherpad-lite/settings.json',
- '/home/etherpad-lite'], Mysql_grant['etherpad@%/etherpad'], Package['npm'] ],
+ require => $ensure ? {
+ present => [ File['/etc/init.d/etherpad-lite', '/var/lib/etherpad-lite/settings.json',
+ '/home/etherpad-lite'], Mysql_grant['etherpad@%/etherpad'], Package['npm'] ],
+ default => undef,
+ },
}
}