mozilla-it/puppetctl — pull request #6 by neoice (2013-07-16 23:04:43+00:00)
Title: add a check to atq and clean up with atrm if needed

here's a scenario that bit me in production:

t+0hr: puppetctl disable -t "now + 3 hours" -m "deploying code"
t+1hr: puppetctl enable && puppetctl run
t+2hr: puppetctl disable -t "now + 3 days" -m "done for the weekend, will fix monday"
t+3hr: atd runs and enables puppet causing much chaos!

I typically don't write shellscripts for public consumption, so I'm not sure if this code is considered "good style", but I'm deploying this version to my network now and will continue testing it this week!