From 6b4ab40c939f54e9585f4f97f2ddda68ffeb8d25 Mon Sep 17 00:00:00 2001 From: Timo Makinen Date: Thu, 27 Nov 2014 09:32:56 +0200 Subject: [PATCH] puppet: Workaround for broken find (too many open files) for puppet-report-cleanup --- puppet/templates/puppet-report-cleanup.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/puppet/templates/puppet-report-cleanup.erb b/puppet/templates/puppet-report-cleanup.erb index 5a6607d..c41c96c 100755 --- a/puppet/templates/puppet-report-cleanup.erb +++ b/puppet/templates/puppet-report-cleanup.erb @@ -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 %>