Last active
February 10, 2019 23:00
-
-
Save matthewcosgrove/879b45f69dc1c760fac330068f225b63 to your computer and use it in GitHub Desktop.
Bootstrapping Linux VMs - Set up authorized keys
This file contains hidden or 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 | |
| : "${VM_IP:? VM_IP must be set}" | |
| exec ssh root@${VM_IP} \ | |
| 'bash -s' < 01_prereq_as_root.sh |
This file contains hidden or 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 | |
| set -eu | |
| wget -nc -O /usr/local/bin/jq https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 || : | |
| chmod +x /usr/local/bin/jq | |
| python -mplatform | grep -qi centos && yum -y update curl nss |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment