Created
August 10, 2018 21:31
-
-
Save cjlyth/44c253af77733e5ad78cc5cdb05efc41 to your computer and use it in GitHub Desktop.
CoreOS install script for a vmware instance
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
#!/usr/bin/env bash | |
# thanks to this gist for getting me started | |
# https://gist.github.com/noonat/9fc170ea0c6ddea69c58 | |
curl https://api.github.com/users/cjlyth/keys \ | |
| grep -oe 'ssh-rsa[^""]*' \ | |
>> ~/.ssh/authorized_keys | |
echo -e "#cloud-config\nssh_authorized_keys:\n$(sed 's/^/ - /' ~/.ssh/authorized_keys)" \ | |
> ~/cloud-config.yaml | |
sudo coreos-install -d /dev/sda -C stable -c ~/cloud-config.yaml -o vmware_raw |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment