Skip to content

Instantly share code, notes, and snippets.

@kelseyhightower
Created September 17, 2014 18:22
Show Gist options
  • Save kelseyhightower/9d43a19c8876bb724d2f to your computer and use it in GitHub Desktop.
Save kelseyhightower/9d43a19c8876bb724d2f to your computer and use it in GitHub Desktop.
coreos:
fleet:
metadata: role=etcd
etcd:
addr: $public_ipv4:4001
peer-addr: $private_ipv4:7001
bind-addr: 0.0.0.0
cluster-active-size: 1
snapshot: true
units:
- name: etcd.service
command: start
- name: fleet.service
command: start
- name: docker.service
command: start
- name: setup-network-environment.service
command: start
content: |
[Unit]
Description=Setup Network Environment
Documentation=https://github.com/kelseyhightower/setup-network-environment
Requires=network-online.target
After=network-online.target
[Service]
ExecStartPre=-/usr/bin/mkdir -p /opt/bin
ExecStartPre=/usr/bin/wget -N -P /opt/bin http://storage.googleapis.com/snenv/setup-network-environment
ExecStartPre=/usr/bin/chmod +x /opt/bin/setup-network-environment
ExecStart=/opt/bin/setup-network-environment
RemainAfterExit=yes
Type=oneshot
update:
group: alpha
reboot-strategy: reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment