Skip to content

Instantly share code, notes, and snippets.

@kelseyhightower
Created August 18, 2014 22:33
Show Gist options
  • Save kelseyhightower/9dcbc6c27e0c466ed6e6 to your computer and use it in GitHub Desktop.
Save kelseyhightower/9dcbc6c27e0c466ed6e6 to your computer and use it in GitHub Desktop.
#cloud-config
hostname: core1.example.com
coreos:
etcd:
name: core1
addr: 192.168.12.11:4001
bind-addr: 0.0.0.0
peer-addr: 192.168.12.11:7001
peers: 192.168.12.10:7001,192.168.12.12:7001
peer-heartbeat-interval: 250
peer-election-timeout: 1000
units:
- name: static.network
command: start
content: |
[Match]
Name=ens33
[Network]
Address=192.168.12.11/24
DNS=192.168.12.2
Gateway=192.168.12.2
- name: etcd.service
command: start
- name: fleet.service
command: start
- name: docker-tcp.socket
command: start
content: |
[Unit]
Description=Docker Socket for the API
[Socket]
ListenStream=2375
Service=docker.service
BindIPv6Only=both
[Install]
WantedBy=sockets.target
- name: enable-docker-tcp.service
command: start
content: |
[Unit]
Description=Enable the Docker Socket for the API
[Service]
Type=oneshot
ExecStart=/usr/bin/systemctl enable docker-tcp.socket
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment