diff options
author | mh <mh@immerda.ch> | 2009-08-19 20:36:43 +0200 |
---|---|---|
committer | mh <mh@immerda.ch> | 2009-08-19 20:36:43 +0200 |
commit | ef7f35375645924c45c0602ac21d17082e945f34 (patch) | |
tree | 9dd882a28bb91396eae4e9b61d1a78396fcf3a86 | |
parent | 5dc8f374928e37c5ee0370634a92af58c657b279 (diff) |
add puppet reports cleanup cronjob
-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; + } } |