mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-11-24 08:52:15 +02:00
update
This commit is contained in:
parent
05bf40197a
commit
4f274faac5
9
etcd-arm/etc/default/etcd
Normal file
9
etcd-arm/etc/default/etcd
Normal 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
|
11
etcd-arm/etc/systemd/system/etcd.service
Normal file
11
etcd-arm/etc/systemd/system/etcd.service
Normal 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
|
Loading…
Reference in New Issue
Block a user