murano-apps/kubernetes/io.murano.apps.docker.kuber.../Resources/scripts/member-etcd-config-p2.conf

11 lines
755 B
Plaintext

--data-dir /var/lib/etcd --snapshot-count 1000 --listen-peer-urls http://%%IP%%:7001,http://127.0.0.1:7001 --listen-client-urls http://%%IP%%:4001,http://127.0.0.1:4001 --initial-advertise-peer-urls http://%%IP%%:7001 --advertise-client-urls http://%%IP%%:4001,http://127.0.0.1:4001"
EXISTING_ETCD_OPTS="--name %%NAME%% --data-dir /var/lib/etcd --snapshot-count 1000 --listen-peer-urls http://%%IP%%:7001,http://127.0.0.1:7001 --listen-client-urls http://%%IP%%:4001,http://127.0.0.1:4001 --advertise-client-urls http://%%IP%%:4001,http://127.0.0.1:4001"
if [ -d /var/lib/etcd/wal/ ]
then
#This will allow to restart etcd service properly to pick up properties from other peers
ETCD_OPTS=$EXISTING_ETCD_OPTS
else
ETCD_OPTS=$INIT_ETCD_OPTS
fi