Skip to content

Instantly share code, notes, and snippets.

@iwanbolzern
Created July 15, 2019 11:55
Show Gist options
  • Save iwanbolzern/454fb1e0660eefff0e7dea77062a6743 to your computer and use it in GitHub Desktop.
Save iwanbolzern/454fb1e0660eefff0e7dea77062a6743 to your computer and use it in GitHub Desktop.
Sample cloud-config.yml for basic RancherOS configuration
#cloud-config
hostname: [HOSTNAME e.g. rancher02]
rancher:
network:
interfaces:
eth*:
dhcp: false
eth0:
address: [IP e.g. 192.168.1.141/24]
gateway: [Gateway 192.168.1.1]
dns:
nameservers:
- [DNS 1]
- [DNS 2]
ssh_authorized_keys:
- ssh-rsa [SSH Key]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment