Created
September 18, 2014 11:03
-
-
Save charlesmarshall/6eb674bb247ef71bad10 to your computer and use it in GitHub Desktop.
vagrant up for coreos
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 | |
vagrant destroy -f | |
vagrant box update | |
ssh-keygen -f ~/.ssh/known_hosts -R 172.17.8.101 | |
oldIFS="$IFS" | |
IFS="¬" | |
content="$(cat ./user-data)" | |
discovery="$(curl -s https://discovery.etcd.io/new)" | |
echo "new token: ${discovery}" | |
echo ${content} | sed -E "s#discovery: (.*)#discovery: ${discovery}#g" > ./user-data | |
IFS="$oldIFS" | |
vagrant up | |
ssh [email protected] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment