summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2011-01-17 13:22:40 -0500
committerMicah Anderson <micah@riseup.net>2011-01-17 13:22:40 -0500
commit4835560269a3485603aaf70b0e35eba28b4f3571 (patch)
tree5683cda41310f9a2b31b18ca1db4de1243f4ad7c
parent3483bcc733f55066d12392e0861ec3c727893a7a (diff)
fix location of puppet reports in cronjob that is run daily to cleanup reports on a monthly basis (by default)
-rw-r--r--manifests/puppetmaster/cleanup_reports.pp2
1 files changed, 1 insertions, 1 deletions
diff --git a/manifests/puppetmaster/cleanup_reports.pp b/manifests/puppetmaster/cleanup_reports.pp
index 58fb9e2..664bd81 100644
--- a/manifests/puppetmaster/cleanup_reports.pp
+++ b/manifests/puppetmaster/cleanup_reports.pp
@@ -2,7 +2,7 @@ class puppet::puppetmaster::cleanup_reports {
# clean up reports older than $puppetmaster_cleanup_reports days
file { '/etc/cron.daily/puppet_reports_cleanup.sh':
- content => "#!/bin/bash\nfind /var/log/puppet/reports/ -maxdepth 2 -type f -ctime +${puppetmaster_cleanup_reports} -exec rm {} \\;\n",
+ content => "#!/bin/bash\nfind /var/lib/puppet/reports/ -maxdepth 2 -type f -ctime +${puppetmaster_cleanup_reports} -exec rm {} \\;\n",
owner => root, group => 0, mode => 0700;
}
}