Skip to content

Instantly share code, notes, and snippets.

@qrpike
Created January 22, 2016 11:12
Show Gist options
  • Save qrpike/cfd5245d4459a2d6efd8 to your computer and use it in GitHub Desktop.
Save qrpike/cfd5245d4459a2d6efd8 to your computer and use it in GitHub Desktop.
#cloud-config
ssh_authorized_keys:
- ssh-rsa xyz
write_files:
- path: /var/lib/rancher/conf/cloud-config.yml
permissions: "0644"
owner: root
content: |
#cloud-config
ssh_authorized_keys:
- ssh-rsa xyz
rancher:
state:
dev: LABEL=RANCHER_STATE
services_include:
ubuntu-console: true
network:
dns:
override: true
nameservers:
- 192.168.30.11
- 192.168.30.12
interfaces:
eth0:
dhcp: true
eth1:
dhcp: false
rancher:
state:
dev: LABEL=RANCHER_STATE
services_include:
ubuntu-console: true
network:
dns:
override: true
nameservers:
- 192.168.30.11
- 192.168.30.12
interfaces:
eth0:
dhcp: true
eth1:
dhcp: false
@zalyoung
Copy link

Thanks for your sharing,it works for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment