Forked from kelseyhightower/gist:ce3d8e358d837847464b
Last active
August 29, 2015 14:03
-
-
Save bhcleek/e246ae5e98144a53f61d to your computer and use it in GitHub Desktop.
coreos-cloud-config
This file contains 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