Skip to content

Instantly share code, notes, and snippets.

@kelseyhightower
Last active August 29, 2015 14:16
Show Gist options
  • Save kelseyhightower/a789ec8cce2cfc54b18f to your computer and use it in GitHub Desktop.
Save kelseyhightower/a789ec8cce2cfc54b18f to your computer and use it in GitHub Desktop.
#cloud-config
coreos:
etcd:
addr: 10.22.9.201:4001 # This address changes between nodes
bind-addr: 0.0.0.0 # So we listen on localhost too
peer-addr: 10.22.9.201:7001 # This address changes between nodes
peers: 10.22.9.200:7001,10.22.9.201:7001,10.22.9.202:7001
update:
reboot-strategy: best-effort
units:
- name: etcd.service
command: start
- name: fleet.service
command: start
- name: static.network
command: start
content: |
[Match]
Name=bond0
[Network]
Address=10.22.9.201/26 # This changes between nodes
Gateway=10.22.9.193
DNS=162.132.7.124
DNS=162.132.7.122
- name: nic1.network
command: start
content: |
[Match]
Name=enp4s0f0
[Network]
Bond=bond0
- name: nic2.network
command: start
content: |
[Match]
Name=enp4s0f1
[Network]
Bond=bond0
- name: virtual.netdev
command: start
content: |
[NetDev]
Name=bond0
Kind=bond
ssh_authorized_keys:
- ssh-rsa [key]
hostname: riddc01 # This changes between nodes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment