Do not run both puppet clientbucket cleanup job concurrently. sequentially should...
authorPeter Palfrader <peter@palfrader.org>
Fri, 11 Mar 2016 07:08:40 +0000 (08:08 +0100)
committerPeter Palfrader <peter@palfrader.org>
Fri, 11 Mar 2016 07:12:02 +0000 (08:12 +0100)
modules/debian-org/templates/dsa-puppet-stuff.cron.erb

index 7908ee6..3aa7328 100644 (file)
@@ -15,5 +15,4 @@ SHELL=/bin/bash
 
 @daily munin-async [ -d /var/lib/munin-async ] && find /var/lib/munin-async -maxdepth 1 -type f -mtime +30 -delete
 
-@daily root [ -d /var/lib/puppet/clientbucket ] && find /var/lib/puppet/clientbucket -type f -mtime +60 -delete
-@daily root [ -d /var/lib/puppet/clientbucket ] && find /var/lib/puppet/clientbucket -type d -empty -delete
+@daily root [ -d /var/lib/puppet/clientbucket ] && find /var/lib/puppet/clientbucket -type f -mtime +60 -delete && find /var/lib/puppet/clientbucket -type d -empty -delete