puppet: Workaround for broken find (too many open files) for puppet-report-cleanup
This commit is contained in:
parent
9ae45e3fef
commit
6b4ab40c93
1 changed files with 2 additions and 2 deletions
|
@ -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 %>
|
||||
|
|
Loading…
Add table
Reference in a new issue