Skip to content

Instantly share code, notes, and snippets.

@dginther
Created April 30, 2014 22:00
Show Gist options
  • Save dginther/6bcde15925230f985b3b to your computer and use it in GitHub Desktop.
Save dginther/6bcde15925230f985b3b to your computer and use it in GitHub Desktop.
"#cloud-config\n",
"---\n",
"coreos:\n",
" etcd:\n",
" # generate a new token for each unique cluster from https://discovery.etcd.io/new\n",
" # uncomment the following line and replace it with your discovery URL\n",
" # discovery: https://discovery.etcd.io/12345693838asdfasfadf13939923\n",
" addr: $public_ipv4:4001\n",
" peer-addr: $private_ipv4:7001\n",
" units:\n",
" - name: docker.service\n",
" content: |\n",
" [Unit]\n",
" Description=Docker Application Container Engine\n",
" Documentation=http://docs.docker.io\n",
"\n",
" [Service]\n",
" ExecStartPre=/bin/mount --make-rprivate /\n",
" # Run docker but don't have docker automatically restart\n",
" # containers. This is a job for systemd and unit files.\n",
" ExecStart=/usr/bin/docker -d -s=btrfs -r=false -H fd://\n",
"\n",
" [Install]\n",
" WantedBy=multi-user.target\n",
" - name: docker-tcp.socket\n",
" command: start\n",
" content: |\n",
" [Unit]\n",
" Description=Docker Socket for Remote API\n",
"\n",
" [Socket]\n",
" ListenStream=4243\n",
" Service=docker.service\n",
" BindIPv6Only=both\n",
"\n",
" [Install]\n",
" WantedBy=sockets.target\n",
" - name: etcd.service\n",
" command: start\n",
" - name: fleet.service\n",
" command: start\n",
" content: |\n",
" [Unit]\n",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment