Retain only 5 days of puppet reports on puppetmaster

We primarily interact with the reports via puppetdb/puppetboard so
keeping these files around doesn't make much sense. Since we're having
disk space issues we can more agressively prune logs.

Puppet apply fixes this entirely

Change-Id: I3e39d0d858ba5d6e548cd958b6b46796d579dde1
This commit is contained in:
Spencer Krum 2015-12-30 16:02:03 -08:00
parent 27b040913a
commit 2bb880f2c7

View File

@ -48,7 +48,7 @@ class openstack_project::puppetmaster (
user => 'root',
hour => '3',
minute => '0',
command => 'sleep $((RANDOM\%600)) && find /var/lib/puppet/reports -name \'*.yaml\' -mtime +7 -execdir rm {} \;',
command => 'sleep $((RANDOM\%600)) && find /var/lib/puppet/reports -name \'*.yaml\' -mtime +5 -execdir rm {} \;',
environment => 'PATH=/var/lib/gems/1.8/bin:/usr/bin:/bin:/usr/sbin:/sbin',
}