Rotate gearman log worker logs.

* modules/openstack_project/manifests/logstash_worker.pp: Use logrotate
to rotate Jenkins log worker logs. These log files were not being
rotated and get fairly large making debugging failures difficult. Rotate
the logs to simplify debugging with logs and prevent unbounded log
growth.

Change-Id: Ic7e983c1b88ea45430c732c0dadb0ba3f08c6cc6
This commit is contained in:
Clark Boylan 2013-08-29 08:16:57 -07:00
parent 41bff34c27
commit 08394a9113

View File

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