Skip to content

Instantly share code, notes, and snippets.

@weargoggles
Created October 29, 2014 12:30
Show Gist options
  • Save weargoggles/b2af1198c39acb7c7198 to your computer and use it in GitHub Desktop.
Save weargoggles/b2af1198c39acb7c7198 to your computer and use it in GitHub Desktop.
#cloud-config
ssh_authorized_keys:
- ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAwbkJky1DezPNw6mCN4MXb4sz7kq5Jjh0+RamokaRIR7PGZQ8lL/F2ZR+tjdc/RMm60442cz8yuM7LBC1ys9nJzexl50WuaX2jq8T+LhQIXaUWPWjlpMV/LKbKN3wCztEJIgXH/ZwpPwe4AgmC9hLe7wL1p4RBlqzyargill4TlAO3xBgEHlGNoJH08BLoIyj4s7wXnWaEtb/yqkH3VEfL1+PrI6f3NLvqSxPO2JockqrnywLAXhq7/Xu9ENfDGS0kCQn1v/VMfGJm7gnX53Tw/2liL/+r06AhHAJLvO+otbZu9MT1F8EmTFfmFemrewGW6T8Ypkco/nQBKfGLUHwYw== pete
coreos:
etcd:
# generate a new token for each unique cluster from https://discovery.etcd.io/new
# uncomment the following line and replace it with your discovery URL
# discovery: SOME_DISCOVERY_URL
addr: $private_ipv4:4001
peer-addr: $private_ipv4:7001
units:
- name: docker.service
content: |
[Unit]
Description=Docker Application Container Engine
Documentation=http://docs.docker.io
[Service]
ExecStartPre=/bin/mount --make-rprivate /
# Run docker but don't have docker automatically restart
# containers. This is a job for systemd and unit files.
ExecStart=/usr/bin/docker -d -s=btrfs -r=false -H fd://
[Install]
WantedBy=multi-user.target
- name: docker-tcp.socket
command: start
content: |
[Unit]
Description=Docker Socket for Remote API
[Socket]
ListenStream=4243
Service=docker.service
BindIPv6Only=both
[Install]
WantedBy=sockets.target
- name: etcd.service
command: start
- name: fleet.service
command: start
content: |
[Unit]
Description=fleet
[Service]
Environment=FLEET_PUBLIC_IP=$private_ipv4
ExecStart=/usr/bin/fleet
- path: /etc/environment
content: |
COREOS_PUBLIC_IPV4={{ INSTANCE_PUBLIC_IPV4 }}
COREOS_PRIVATE_IPV4={{ INSTANCE_PUBLIC_IPV4 }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment