Skip to content

Instantly share code, notes, and snippets.

@cjlyth
Created August 10, 2018 21:31
Show Gist options
  • Save cjlyth/44c253af77733e5ad78cc5cdb05efc41 to your computer and use it in GitHub Desktop.
Save cjlyth/44c253af77733e5ad78cc5cdb05efc41 to your computer and use it in GitHub Desktop.
CoreOS install script for a vmware instance
#!/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