diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2014-03-09 15:02:11 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2014-03-09 15:02:11 -0300 |
commit | 83474b6a09f8579f484ae11012727a1d261cc01c (patch) | |
tree | ebacb66e81484a9fb35d4b68272a78828539d8fd | |
parent | 6ff01084a8feb2644b8f76660fe0ac384aa3e54c (diff) | |
download | puppet-etherpad-83474b6a09f8579f484ae11012727a1d261cc01c.tar.gz puppet-etherpad-83474b6a09f8579f484ae11012727a1d261cc01c.tar.bz2 |
Fixing requirements when the service is absent
-rw-r--r-- | manifests/init.pp | 7 |
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, + }, } } |