Skip to content

Instantly share code, notes, and snippets.

@mopemope
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mopemope/9837732 to your computer and use it in GitHub Desktop.
Save mopemope/9837732 to your computer and use it in GitHub Desktop.
coreos cloud-config.yml
#cloud-config
hostname: coreos3
coreos:
etcd:
discovery: http://192.168.2.28:4001/v2/keys/cluster
addr: 192.168.2.52:4001
peer-addr: 192.168.2.52:7001
bind-addr: 0.0.0.0
units:
- name: etcd.service
command: start
- name: docker.service
command: start
- name: fleet.service
command: start
ssh_authorized_keys:
- ssh-rsa AAAAB3N...
write_files:
- path: /etc/systemd/network/10-static.network
content: |
[Match]
Name=ens*
[Network]
Address=192.168.2.52/24
Gateway=192.168.2.1
DNS=8.8.8.8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment