puppet/puppet/templates/puppet-report-cleanup.erb

6 lines
188 B
Text
Executable file

#!/bin/sh
MAXAGE=<%= puppet_report_maxage %>
/usr/sbin/tmpwatch -m ${MAXAGE} /srv/puppet/reports
find /srv/puppet/reports/ -mindepth 2 -mmin +1440 -type f -name \*.yaml -exec gzip {} \;