Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@intjonathan
Created December 3, 2013 21:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save intjonathan/7778177 to your computer and use it in GitHub Desktop.
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
#!/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