Skip to content

Commit

Permalink
Updated Sample Config
Browse files Browse the repository at this point in the history
Sample config now enables remote docker socket and etcd2.
  • Loading branch information
paulshir committed Jun 27, 2015
1 parent 50cbdbf commit 4d99f1b
Showing 1 changed file with 22 additions and 5 deletions.
27 changes: 22 additions & 5 deletions configs/basiccluster_staticnetwork.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
#cloud-config

---
hostname: {{VM_NAME}}
ssh_authorized_keys:
- ssh-rsa INSERT_PUBLIC_KEY_HERE
coreos:
etcd:
etcd2:
name: {{VM_NAME}}
discovery: {{ETCD_DISCOVERY_TOKEN}}
addr: {{IP_ADDRESS[NET_0]}}:4001
peer-addr: {{IP_ADDRESS[NET_0]}}:7001
advertise-client-urls: http://{{IP_ADDRESS[NET_0]}}:2379
initial-advertise-peer-urls: http://{{IP_ADDRESS[NET_0]}}:2380
listen-client-urls: http://0.0.0.0:2379
listen-peer-urls: http://{{IP_ADDRESS[NET_0]}}:2380
fleet:
public-ip: {{IP_ADDRESS[NET_0]}}
metadata: cluster={{CLUSTER_NAME}}
metadata: cluster={{CLUSTER_NAME}},machine={{VM_NAME}}
units:
- name: static.network
command: start
Expand All @@ -24,7 +27,21 @@ coreos:
DNS={{DNS_SERVER_0[NET_0]}}
DNS={{DNS_SERVER_1[NET_0]}}
Gateway={{GATEWAY[NET_0]}}
- name: etcd.service
- name: docker-tcp.socket
command: start
enable: true
content: |
[Unit]
Descritption=Docker Socket for the API
[Socket]
ListenStream=2375
BindIPv6Only=both
Service=docker.service
[Install]
WantedBy=sockets.target
- name: etcd2.service
command: start
- name: fleet.service
command: start
Expand Down

0 comments on commit 4d99f1b

Please sign in to comment.