]> git.donarmstrong.com Git - dsa-puppet.git/blob - modules/debian-org/files/dsa-puppet-stuff.cron
use a puppet builtin for this
[dsa-puppet.git] / modules / debian-org / files / dsa-puppet-stuff.cron
1 ##
2 ## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
3 ## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
4 ##
5
6 SHELL=/bin/bash
7 @hourly  root [ ! -d /var/cache/dsa ] || touch /var/cache/dsa/cron.alive
8 34 */4 * * * root if [ -x /usr/sbin/puppetd ]; then sleep $(( $RANDOM \% 7200 )); if [ -x /usr/bin/timeout ]; then TO="timeout --kill-after=900 3600"; else TO=""; fi; tmp="$(tempfile)"; egrep -v '^(#|$)' /etc/dsa/cron.ignore.dsa-puppet-stuff > "$tmp" && $TO /usr/sbin/puppetd -o --no-daemonize 2>&1 | egrep --text -v -f "$tmp"; rm -f "$tmp"; fi