-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from bcochofel/upgrade_k8s
feat: upgrade kubernetes
- Loading branch information
Showing
3 changed files
with
22 additions
and
12 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,10 @@ | ||
#!/bin/bash | ||
|
||
# copy private key to controller | ||
vagrant scp /tmp/vagrant_rsa controller:~/.ssh/id_rsa | ||
|
||
# copy ansible.cfg | ||
vagrant scp ./ansible.cfg controller:~/.ansible.cfg | ||
|
||
# copy public key to nodes | ||
PUB_KEY=$(cat /tmp/vagrant_rsa.pub) | ||
vagrant ssh node01 -- "echo $PUB_KEY >> ~/.ssh/authorized_keys" | ||
vagrant ssh node02 -- "echo $PUB_KEY >> ~/.ssh/authorized_keys" | ||
vagrant ssh node03 -- "echo $PUB_KEY >> ~/.ssh/authorized_keys" | ||
rm -f /tmp/vagrant_rsa* | ||
#rm -f /tmp/vagrant_rsa* | ||
|
||
exit 0 |