diff options
-rw-r--r-- | manifests/puppetmaster.pp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/manifests/puppetmaster.pp b/manifests/puppetmaster.pp index 4ee2a99..42754df 100644 --- a/manifests/puppetmaster.pp +++ b/manifests/puppetmaster.pp @@ -48,6 +48,11 @@ class puppet::puppetmaster::base inherits puppet::base { "puppet://$server/puppet/cron.d/puppetmaster" ], owner => root, group => 0, mode => 0644; } + + file{'/etc/cron.daily/puppet_reports_cleanup.sh': + content => "#!/bin/bash\nfind /var/log/puppet/reports/ -maxdepth 2 -type f -ctime +30 -exec rm {} \\;\n" + owner => root, group => 0, mode => 0700; + } } |