Set --name flag in etcd migration script

This commit is contained in:
Wojciech Tyczynski 2016-11-15 10:27:02 +01:00
parent 83d83ebb47
commit 2bccbafb6d

View File

@ -117,7 +117,8 @@ start_etcd() {
else
ETCDCTL_CMD="${ETCDCTL_CMD} --endpoints=http://127.0.0.1:${ETCD_PORT} put"
fi
${ETCD_CMD} --data-dir=${DATA_DIRECTORY} \
${ETCD_CMD} --name="etcd-$(hostname)" \
--data-dir=${DATA_DIRECTORY} \
--listen-client-urls http://127.0.0.1:${ETCD_PORT} \
--advertise-client-urls http://127.0.0.1:${ETCD_PORT} \
--listen-peer-urls http://127.0.0.1:${ETCD_PEER_PORT} \