Index: modules/logrotate/manifests/init.pp |
=================================================================== |
--- a/modules/logrotate/manifests/init.pp |
+++ b/modules/logrotate/manifests/init.pp |
@@ -5,16 +5,6 @@ |
onlyif => 'test ! -f /var/lib/logrotate/status' |
} |
- cron {'logrotate': |
- ensure => present, |
f.nicolaisen
2017/03/09 08:53:19
What about ensuring that the cronjob is absent? Is
|
- require => Exec['ensure_logrotate_status'], |
- command => '/usr/sbin/logrotate /etc/logrotate.conf', |
- environment => hiera('cron::environment', []), |
- user => root, |
- hour => '0', |
- minute => '0' |
- } |
- |
$config = hiera('logrotate::config', {}) |
create_resources('logrotate::config', $config) |
} |