Rotate cloud launcher log files
Change-Id: I6aa9b6fee2dfffb0f1e2909a346065b8a60aec60
This commit is contained in:
parent
3d807fb874
commit
a9f46c7939
@ -43,6 +43,34 @@ class openstack_project::puppetmaster (
|
|||||||
environment => 'PATH=/var/lib/gems/1.8/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin',
|
environment => 'PATH=/var/lib/gems/1.8/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
logrotate::file { 'updatecloudlauncher':
|
||||||
|
ensure => present,
|
||||||
|
log => '/var/log/puppet_run_cloud_launcher.log',
|
||||||
|
options => ['compress',
|
||||||
|
'copytruncate',
|
||||||
|
'delaycompress',
|
||||||
|
'missingok',
|
||||||
|
'rotate 7',
|
||||||
|
'daily',
|
||||||
|
'notifempty',
|
||||||
|
],
|
||||||
|
require => Cron['updatepuppetmaster'],
|
||||||
|
}
|
||||||
|
|
||||||
|
logrotate::file { 'updatecloudlaunchercron':
|
||||||
|
ensure => present,
|
||||||
|
log => '/var/log/puppet_run_cloud_launcher_cron.log',
|
||||||
|
options => ['compress',
|
||||||
|
'copytruncate',
|
||||||
|
'delaycompress',
|
||||||
|
'missingok',
|
||||||
|
'rotate 7',
|
||||||
|
'daily',
|
||||||
|
'notifempty',
|
||||||
|
],
|
||||||
|
require => Cron['updatepuppetmaster'],
|
||||||
|
}
|
||||||
|
|
||||||
cron { 'updatepuppetmaster':
|
cron { 'updatepuppetmaster':
|
||||||
user => 'root',
|
user => 'root',
|
||||||
minute => $puppetmaster_update_cron_interval[min],
|
minute => $puppetmaster_update_cron_interval[min],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user