Skip to content

Instantly share code, notes, and snippets.

@ehyland
Last active June 2, 2017 06:41
Show Gist options
  • Save ehyland/920450a904eef5801eda6157d12d3978 to your computer and use it in GitHub Desktop.
Save ehyland/920450a904eef5801eda6157d12d3978 to your computer and use it in GitHub Desktop.
#!/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
#!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