Skip to content

Instantly share code, notes, and snippets.

@skarllot
Created June 17, 2015 19:47
Show Gist options
  • Select an option

  • Save skarllot/4b4e3b2052f3626e0fa6 to your computer and use it in GitHub Desktop.

Select an option

Save skarllot/4b4e3b2052f3626e0fa6 to your computer and use it in GitHub Desktop.
Cloud init
instance-id: server1
local-hostname: server1.example.com
network-interfaces: |
iface ens160 inet static
address 192.168.1.10
network 192.168.1.0
netmask 255.255.255.0
broadcast 192.168.1.255
gateway 192.168.1.1
bootcmd:
- ifdown ens160
- ifup ens160
#cloud-config
password: password
ssh_pwauth: True
chpasswd: { expire: False }
ssh_authorized_keys:
- ssh-rsa AAAAB3 ... 9xB user@example.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment