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:
parent
74c54387ed
commit
2db83f1f16
@ -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',
|
||||
|
Loading…
x
Reference in New Issue
Block a user