1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-24 08:52:15 +02:00
This commit is contained in:
kev 2015-10-01 02:25:26 +08:00
parent 05bf40197a
commit 4f274faac5
2 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,9 @@
ETCD_NAME=pi2
ETCD_DATA_DIR=/var/lib/etcd
ETCD_INITIAL_ADVERTISE_PEER_URLS=http://192.168.1.229:2380
ETCD_LISTEN_PEER_URLS=http://192.168.1.229:2380
ETCD_LISTEN_CLIENT_URLS=http://192.168.1.229:2379,http://127.0.0.1:2379
ETCD_ADVERTISE_CLIENT_URLS=http://192.168.1.229:2379
ETCD_INITIAL_CLUSTER_TOKEN=pi-cluster
ETCD_INITIAL_CLUSTER=pi0=http://192.168.1.228:2380,pi1=http://192.168.1.207:2380,pi2=http://192.168.1.229:2380
ETCD_INITIAL_CLUSTER_STATE=new

View File

@ -0,0 +1,11 @@
[Unit]
Description=Etcd Daemon
After=network.target
[Service]
EnvironmentFile=/etc/default/etcd
ExecStartPre=/usr/bin/mkdir -p $ETCD_DATA_DIR
ExecStart=/usr/local/bin/etcd
[Install]
WantedBy=multi-user.target