Clean out puppet clientbucket
authorPeter Palfrader <peter@palfrader.org>
Wed, 9 Mar 2016 09:27:00 +0000 (10:27 +0100)
committerPeter Palfrader <peter@palfrader.org>
Wed, 9 Mar 2016 09:27:00 +0000 (10:27 +0100)
modules/debian-org/templates/dsa-puppet-stuff.cron.erb

index c2dda73..7908ee6 100644 (file)
@@ -14,3 +14,6 @@ SHELL=/bin/bash
 @hourly root sleep $(( $RANDOM \% 300 )); if [ -x /usr/lib/nagios/plugins/dsa-check-stunnel-sanity ] && [ -e /etc/stunnel/puppet-ekeyd.conf ] && ! /usr/lib/nagios/plugins/dsa-check-stunnel-sanity > /dev/null && grep -q '^client = yes' /etc/stunnel/puppet-ekeyd.conf; then /usr/sbin/service stunnel4 restart > /dev/null; fi
 
 @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