Rotate Jenkisn log client logs.

* modules/openstack_project/manifests/logstash.pp: Rotate jenkins log
client logs with logrotate. Keep one week of logs and rotate daily.

Change-Id: I9b6a320afda76cc7285c959196a24853a5a9561e
This commit is contained in:
Clark Boylan 2013-09-03 10:16:27 -07:00
parent 3a4b270348
commit 8cf1cc37ac
1 changed files with 14 additions and 0 deletions

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'],
}
}