Last active
June 2, 2017 06:41
-
-
Save ehyland/920450a904eef5801eda6157d12d3978 to your computer and use it in GitHub Desktop.
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 | |
cat > "cloud-config.yaml" <<EOF | |
#cloud-config | |
ssh_authorized_keys: | |
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDbqJZrC35FY4gp0alwUhoc+j2rTwI9YGpHGLOG/3lcW1TWYtZWvho6EwmukAAkHmNG9sM9ELQl96+ffFw3LcTIJthp998ELG7fq+ljaucY8lXiXG8lACL8n8YWZonkBKBS8oa2DDwy2FOcDAUflaSgnoEeKhq91q4RShu43MyY9+vERUwb+iAN5k9OoJ6JE2uAsUlknTYFuS1WqIzIFLc5ZVBgPrQDKOb+Tz1MKboSUrSmaPp/bmExjDOwf3N9qaUyDDQOzELWBwQzb95AMCsxzwJqX4E3uuxIhk+OSaWcyZDHM9UeH8ZFvPJTAdYbKhiiTXP3gauDqmvOY0+15Do9 [email protected] | |
EOF | |
sudo coreos-install -d /dev/vda -c cloud-config.yaml | |
sudo reboot |
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
#!ipxe | |
# Location of your shell script. | |
set cloud-config-url https://gist.githubusercontent.com/ehyland/920450a904eef5801eda6157d12d3978/raw/cloud-config-bootstrap.sh | |
set base-url https://stable.release.core-os.net/amd64-usr/current | |
kernel ${base-url}/coreos_production_pxe.vmlinuz cloud-config-url=${cloud-config-url} | |
initrd ${base-url}/coreos_production_pxe_image.cpio.gz | |
boot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment