Merge "Rotate Jenkisn log client logs."

This commit is contained in:
Jenkins 2013-09-03 22:03:08 +00:00 committed by Gerrit Code Review
commit 43e5193555

View File

@ -95,4 +95,18 @@ class openstack_project::logstash (
subscribe => File['/etc/logstash/jenkins-log-client.yaml'],
require => File['/etc/init.d/jenkins-log-client'],
}
include logrotate
logrotate::file { 'log-client-debug.log':
log => '/var/log/logstash/log-client-debug.log',
options => [
'compress',
'copytruncate',
'missingok',
'rotate 7',
'daily',
'notifempty',
],
require => Service['jenkins-log-client'],
}
}