Skip to content

Instantly share code, notes, and snippets.

View ctheune's full-sized avatar

Christian Theune ctheune

View GitHub Profile
@ctheune
ctheune / runpuppet
Last active December 24, 2015 23:39
MPSSH snippets that I used to force changes through our infrastructure in an emergency script: force r-up-on for a set of machines, speed up reboots and verify machines that have been updated.

Expediate a puppet run on all machines, with at most 30 working at once

mpssh -p 30 -f vms -s -u root -r runpuppet

Poll for machines currently running our puppet wrapper

mpssh -p 20 -f vms -s -E "pgrep -f run-update-puppet" | grep " -> "

Check for and trigger reboots for machines with new kernel