system-config/modules/logrotate/manifests/file.pp
Matthew Wagoner 21dff1ba3d style edits to puppet config files
Change-Id: I4f7314bcb1cb58f94ff7a78aebe27ec4591fc11c
Reviewed-on: https://review.openstack.org/14187
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Approved: Monty Taylor <mordred@inaugust.com>
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Tested-by: Jenkins
2012-10-10 21:01:08 +00:00

23 lines
510 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}":
ensure => $ensure,
owner => 'root',
group => 'root',
mode => '0644',
content => template('logrotate/config.erb'),
require => File['/etc/logrotate.d'],
}
}