Skip to content

Instantly share code, notes, and snippets.

@sybeck2k
Last active August 29, 2015 14:02
Show Gist options
  • Save sybeck2k/a1efdd7ff8597e496512 to your computer and use it in GitHub Desktop.
Save sybeck2k/a1efdd7ff8597e496512 to your computer and use it in GitHub Desktop.
#cloud-config
coreos:
etcd:
# generate a new token for each unique cluster from https://discovery.etcd.io/new
discovery: https://discovery.etcd.io/782a1d6717e57839b5238dda82759736
# multi-region and multi-cloud deployments need to use $public_ipv4
addr: $private_ipv4:4001
peer-addr: $private_ipv4:7001
units:
- name: etcd.service
command: start
- name: fleet.service
runtime: yes
command: start
content: |
[Unit]
Description=fleet
[Service]
Environment=FLEET_PUBLIC_IP=$public_ipv4
ExecStart=/usr/bin/fleet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment