summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2009-08-19 20:36:43 +0200
committermh <mh@immerda.ch>2009-08-19 20:36:43 +0200
commitef7f35375645924c45c0602ac21d17082e945f34 (patch)
tree9dd882a28bb91396eae4e9b61d1a78396fcf3a86 /manifests
parent5dc8f374928e37c5ee0370634a92af58c657b279 (diff)
add puppet reports cleanup cronjob
Diffstat (limited to 'manifests')
-rw-r--r--manifests/puppetmaster.pp5
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;
+ }
}