Skip to content

Instantly share code, notes, and snippets.

@colinwilson
Last active October 21, 2015 11:56
Show Gist options
  • Save colinwilson/aaf221715dad5fd701e4 to your computer and use it in GitHub Desktop.
Save colinwilson/aaf221715dad5fd701e4 to your computer and use it in GitHub Desktop.
#cloud-config
ssh_authorized_keys:
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDE5vnrI12tbo9gZn0dvMRtJnJMOMAgcKWdMT6HKifoEgxb+bA6JsXhRvotu4ttpCMmWgFKNmmSiEbTYS5dJLKG+fssw7HUbYN+wgayS2TQF6AwEW47K65wEu/WjSPVHhg1Sv91k+ZbJW8Me6Z2+QRc9Pg9CO9om6/RZkzueIr8Em6DMu+gM2+AVvgAzFn6uPJZNC82JpnnZWohwSRbkaSY3YEoxpvyZz06aAWEulnQ88BAvS+JkI3kocOqvDXEqESF2xYcpw1SQrHdCROBlw/Rh+zDspVUhjl+lze7T7H+S37tBsFg6QBbiGmNc5dl0olYneWNmOxNTMtjLmkj9xe85t8hs2iQxCdIjbon6Q9oJDleawPkYuv2n902U66tyX1B5d4i+fpO950RXLmvUlYRbQyZzyHgHHI/xxJTEVJMdOBw8ewhgJ3HhvhukkmMiOT2Ycgy2dLhgA+IVmVSCcZKw7k/tIV0GtZen8nAebVJyUS1wj498SaGcPVlikDJfsCZXhlSoYlgsKG+iPQd+WwAK2MPD+Dru9GThqzWoe/RdBBGjTJ8tka6IWCV23iNRholHWSNYNVmrrYVw0Nis1pqSe9/FxgbaMg9Rp2tgVqPFz+ficqZOV0CtZQ9r45R5kq0nUvXQsRj+qY35Rh6S9xvXO5vBzHhnD55+VdjcaSWDw==
write_files:
- path: /opt/rancher/bin/start.sh
permissions: 0755
owner: root
content: |
#!/bin/bash
### create route on initialisation
ip route add 10.0.1.254 dev eth0
ip route add default via 10.0.1.254
rancher:
network:
interfaces:
eth*:
dhcp: false
eth0:
address: 10.0.1.5/32
gateway: 10.0.1.1
mtu: 1500
dns:
nameservers:
- 8.8.8.8
- 8.8.4.4
hostname: rancher
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment