Skip to content

Commit d9d10df

Browse files
Jenkinsopenstack-gerrit
authored andcommitted
Merge "etcd3: Allow for multi-host deployments"
2 parents b9f00f4 + 19279b0 commit d9d10df

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/etcd3

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ function start_etcd3 {
5353
cmd+=" --initial-cluster-state new --initial-cluster-token etcd-cluster-01"
5454
cmd+=" --initial-cluster $HOSTNAME=http://$SERVICE_HOST:2380"
5555
cmd+=" --initial-advertise-peer-urls http://$SERVICE_HOST:2380"
56-
cmd+=" --advertise-client-urls http://$SERVICE_HOST:$ETCD_PORT"
56+
cmd+=" --advertise-client-urls http://${HOST_IP}:$ETCD_PORT"
5757
cmd+=" --listen-peer-urls http://0.0.0.0:2380 "
58-
cmd+=" --listen-client-urls http://$SERVICE_HOST:$ETCD_PORT"
58+
cmd+=" --listen-client-urls http://${HOST_IP}:$ETCD_PORT"
5959

6060
local unitfile="$SYSTEMD_DIR/$ETCD_SYSTEMD_SERVICE"
6161
write_user_unit_file $ETCD_SYSTEMD_SERVICE "$cmd" "" "root"

0 commit comments

Comments
 (0)