mozilla-it / puppetctl

Puppet control tools
Apache License 2.0
26 stars 11 forks source link

add a check to atq and clean up with atrm if needed #6

Closed neoice closed 11 years ago

neoice commented 11 years ago

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!

neoice commented 11 years ago

I assume you mean this fork: https://github.com/bhourigan/puppetctl/commit/41941a42890cbad1fb62e4cfd01e80ace100f453

you might want to merge that into the mozilla-it repo. I found this repo from a PuppetConf lecture, I'm guessing other people have/will too.

neoice commented 11 years ago

7