Skip to content

Instantly share code, notes, and snippets.

@windhamwong
Created December 23, 2015 21:48
Show Gist options
  • Save windhamwong/d443cdc531c821026920 to your computer and use it in GitHub Desktop.
Save windhamwong/d443cdc531c821026920 to your computer and use it in GitHub Desktop.
#cloud-config
users:
- name: "<<USERNAME>>"
passwd: "<<PASSWORD>>"
groups:
- "sudo"
- "docker"
coreos:
etcd2:
# generate a new token for each unique cluster from https://discovery.etcd.io/new:
discovery: https://discovery.etcd.io/<<TOKEN>>
# multi-region deployments, multi-cloud deployments, and Droplets without
# private networking need to use $public_ipv4:
advertise-client-urls: http://$private_ipv4:2379,http://$private_ipv4:4001
initial-advertise-peer-urls: http://$private_ipv4:2380
# listen on the official ports 2379, 2380 and one legacy port 4001:
listen-client-urls: http://0.0.0.0:2379,http://0.0.0.0:4001
listen-peer-urls: http://$private_ipv4:2380
fleet:
public-ip: $private_ipv4 # used for fleetctl ssh command
units:
- name: etcd2.service
command: start
- name: fleet.service
command: start
- name: 00-eth0.network
runtime: true
content: |
[Match]
Name=eth0
[Network]
DNS=8.8.8.8
Address=<<IP ADDRESS>>/24
Gateway=<<GATEWAY>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment