From 774d0b47850ffc06fd438e470ee3af49e6868ad4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20M=E4kinen?= Date: Fri, 21 May 2010 09:14:58 +0300 Subject: [PATCH] Added gzip compression of old puppet reports. --- puppet/templates/puppet-report-cleanup.erb | 1 + 1 file changed, 1 insertion(+) diff --git a/puppet/templates/puppet-report-cleanup.erb b/puppet/templates/puppet-report-cleanup.erb index 81957e9..cebaef0 100755 --- a/puppet/templates/puppet-report-cleanup.erb +++ b/puppet/templates/puppet-report-cleanup.erb @@ -3,3 +3,4 @@ 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 {} \;