puppet: Workaround for broken find (too many open files) for puppet-report-cleanup

This commit is contained in:
Timo Makinen 2014-11-27 09:32:56 +02:00
parent 9ae45e3fef
commit 6b4ab40c93

View file

@ -6,6 +6,6 @@ if [ "`whoami`" = "root" ]; then
fi
find /srv/puppet/reports/ -xdev -mindepth 2 -type f -mtime +<%= @puppet_report_maxage %> \
-name '*.yaml.gz' -execdir rm -f -- {} \;
-name '*.yaml.gz' -execdir rm -f -- {} \<% if @kernel == 'Linux' %>+<% else %>;<% end %>
find /srv/puppet/reports/ -xdev -mindepth 2 -type f -mtime +1 \
-name '*.yaml' -execdir gzip -- {} \;
-name '*.yaml' -execdir gzip -- {} \<% if @kernel == 'Linux' %>+<% else %>;<% end %>