Created
December 3, 2013 21:58
-
-
Save intjonathan/7778177 to your computer and use it in GitHub Desktop.
Pass a list of FQDNs and it'll nuke PE2 and install PE3.1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for host in "$@"; do | |
echo "Doing $host" | |
ssh -tt "${host}" 'curl https://gist.github.com/intjonathan/7663914/raw/17e2638f5db32db2c2d8d7dea80c4c1f8ac09847/pe-3-agent-upgrade.sh | bash' | |
ssh -tt chi-ops-provision-1 "sudo puppet node deactivate ${host}; sudo puppet cert clean ${host}" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment