summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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,
+ },
}
}