diff --git a/modules/openstack_project/manifests/puppetmaster.pp b/modules/openstack_project/manifests/puppetmaster.pp index aad32cea0a..1a22e2bc73 100644 --- a/modules/openstack_project/manifests/puppetmaster.pp +++ b/modules/openstack_project/manifests/puppetmaster.pp @@ -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', } + 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': user => 'root', minute => $puppetmaster_update_cron_interval[min],