Created
July 8, 2014 03:29
-
-
Save kelseyhightower/ce3d8e358d837847464b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#cloud-config | |
hostname: core0 | |
ssh_authorized _keys: | |
- ssh-rsa AAAAB3NzaC1yc2... | |
coreos: | |
etcd: | |
# generate a new token for each unique cluster from https://discovery.etcd.io/new | |
name: core0 | |
discovery: https://discovery.etcd.io/dead0b52c8704ad95ac9681b4550247e | |
addr: 192.168.12.10:4001 | |
peer-addr: 192.168.12.10:7001 | |
bind-addr: 0.0.0.0:4001 | |
units: | |
- 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=4243 | |
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