Merge "etcd3: Allow for multi-host deployments"

This commit is contained in:
Jenkins 2017-06-19 13:38:21 +00:00 committed by Gerrit Code Review
commit d9d10df6cd
1 changed files with 2 additions and 2 deletions

View File

@ -53,9 +53,9 @@ function start_etcd3 {
cmd+=" --initial-cluster-state new --initial-cluster-token etcd-cluster-01"
cmd+=" --initial-cluster $HOSTNAME=http://$SERVICE_HOST:2380"
cmd+=" --initial-advertise-peer-urls http://$SERVICE_HOST:2380"
cmd+=" --advertise-client-urls http://$SERVICE_HOST:$ETCD_PORT"
cmd+=" --advertise-client-urls http://${HOST_IP}:$ETCD_PORT"
cmd+=" --listen-peer-urls http://0.0.0.0:2380 "
cmd+=" --listen-client-urls http://$SERVICE_HOST:$ETCD_PORT"
cmd+=" --listen-client-urls http://${HOST_IP}:$ETCD_PORT"
local unitfile="$SYSTEMD_DIR/$ETCD_SYSTEMD_SERVICE"
write_user_unit_file $ETCD_SYSTEMD_SERVICE "$cmd" "" "root"