puppetmaster: rotate /var/log/puppet_run_all_infracloud.log

The /var/log/puppet_run_all_infracloud.log file (created by
/opt/system-config/production/run_infracloud.sh as it is run by cron)
is currently growing without bound (~6gb).  Add it to logrotate like
puppet_run_all.log

Change-Id: I4528ad1bab871ac489fb53aeaa33f9dabe98bbc7
This commit is contained in:
Ian Wienand 2017-10-30 13:31:14 +11:00
parent 74c54387ed
commit 2db83f1f16
1 changed files with 14 additions and 0 deletions

View File

@ -95,6 +95,20 @@ class openstack_project::puppetmaster (
require => Cron['updatepuppetmaster'],
}
logrotate::file { 'updateinfracloud':
ensure => present,
log => '/var/log/puppet_run_all_infracloud.log',
options => ['compress',
'copytruncate',
'delaycompress',
'missingok',
'rotate 7',
'daily',
'notifempty',
],
require => Cron['updateinfracloud'],
}
logrotate::file { 'updateinfracloudcron':
ensure => present,
log => '/var/log/puppet_run_infracloud_cron.log',