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,
+ },
}
}