system-config/modules/logrotate/manifests/file.pp
Monty Taylor 67ef0a4aa8 Remove uses of remove_cron.
Change-Id: Id95228ae662880176b54903ffbcb196fbead992f
2012-07-27 13:12:16 -05:00

23 lines
620 B
Puppet

define logrotate::file($log,
$options,
$ensure=present,
$prerotate='undef',
$postrotate='undef',
$firstaction='undef',
$lastaction='undef') {
# $options should be an array containing 1 or more logrotate
# directives (e.g. missingok, compress).
include logrotate
file { "/etc/logrotate.d/${name}":
owner => root,
group => root,
mode => 644,
ensure => $ensure,
content => template("logrotate/config.erb"),
require => File["/etc/logrotate.d"],
}
}