4f433a021f
Mostly documentation and parameterised class parameter complaints. Change-Id: I5b3ffa4ad3f707f385165c2d86c891c6bd4c1ae0 Reviewed-on: https://review.openstack.org/16901 Reviewed-by: James E. Blair <corvus@inaugust.com> Approved: Clark Boylan <clark.boylan@gmail.com> Reviewed-by: Clark Boylan <clark.boylan@gmail.com> Tested-by: Jenkins
25 lines
541 B
Puppet
25 lines
541 B
Puppet
# == Define: logrotate::file
|
|
#
|
|
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'],
|
|
}
|
|
}
|