Puppet Class: logrotate::cron
- Defined in:
- manifests/cron.pp
Overview
Class: logrotate::cron
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'manifests/cron.pp', line 2
class logrotate::cron {
assert_private()
$cron_period = $::logrotate::cron_period
if $cron_period != 'daily' {
file { '/etc/cron.daily/logrotate':
ensure => absent,
}
}
file { "/etc/cron.${cron_period}/logrotate":
ensure => file,
owner => 'root',
group => 'root',
mode => '0755',
source => 'puppet:///modules/logrotate/logrotate.cron',
}
}
|