From: Silvio Rhatto Date: Sun, 9 Mar 2014 18:02:11 +0000 (-0300) Subject: Fixing requirements when the service is absent X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=83474b6a09f8579f484ae11012727a1d261cc01c;p=puppet-etherpad.git Fixing requirements when the service is absent --- 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, + }, } }