Skip to content

Commit e177777

Browse files
committed
fix: wpb-22439 cd_staging script as per wiab-staging inventory
1 parent 42efde4 commit e177777

1 file changed

Lines changed: 4 additions & 24 deletions

File tree

offline/cd_staging.sh

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -149,30 +149,10 @@ DATANODE1_IP=$(yq eval '.datanode.hosts | to_entries | .[0].value.ansible_host'
149149
DATANODE2_IP=$(yq eval '.datanode.hosts | to_entries | .[1].value.ansible_host' "$SOURCE")
150150
DATANODE3_IP=$(yq eval '.datanode.hosts | to_entries | .[2].value.ansible_host' "$SOURCE")
151151

152-
# Set cassandra IPs
153-
yq eval -i ".cassandra.hosts.cassandra1.ansible_host = \"$DATANODE1_IP\"" "$TARGET"
154-
yq eval -i ".cassandra.hosts.cassandra2.ansible_host = \"$DATANODE2_IP\"" "$TARGET"
155-
yq eval -i ".cassandra.hosts.cassandra3.ansible_host = \"$DATANODE3_IP\"" "$TARGET"
156-
157-
# Set elasticsearch IPs
158-
yq eval -i ".elasticsearch.hosts.elasticsearch1.ansible_host = \"$DATANODE1_IP\"" "$TARGET"
159-
yq eval -i ".elasticsearch.hosts.elasticsearch2.ansible_host = \"$DATANODE2_IP\"" "$TARGET"
160-
yq eval -i ".elasticsearch.hosts.elasticsearch3.ansible_host = \"$DATANODE3_IP\"" "$TARGET"
161-
162-
# Set minio IPs
163-
yq eval -i ".minio.hosts.minio1.ansible_host = \"$DATANODE1_IP\"" "$TARGET"
164-
yq eval -i ".minio.hosts.minio2.ansible_host = \"$DATANODE2_IP\"" "$TARGET"
165-
yq eval -i ".minio.hosts.minio3.ansible_host = \"$DATANODE3_IP\"" "$TARGET"
166-
167-
# Set rabbitmq IPs
168-
yq eval -i ".rabbitmq.hosts.rabbitmq1.ansible_host = \"$DATANODE1_IP\"" "$TARGET"
169-
yq eval -i ".rabbitmq.hosts.rabbitmq2.ansible_host = \"$DATANODE2_IP\"" "$TARGET"
170-
yq eval -i ".rabbitmq.hosts.rabbitmq3.ansible_host = \"$DATANODE3_IP\"" "$TARGET"
171-
172-
# Set postgresql IPs
173-
yq eval -i ".postgresql.hosts.postgresql1.ansible_host = \"$DATANODE1_IP\"" "$TARGET"
174-
yq eval -i ".postgresql.hosts.postgresql2.ansible_host = \"$DATANODE2_IP\"" "$TARGET"
175-
yq eval -i ".postgresql.hosts.postgresql3.ansible_host = \"$DATANODE3_IP\"" "$TARGET"
152+
# Set datanodes IPs
153+
yq eval -i ".datanodes.hosts.datanode1.ansible_host = \"$DATANODE1_IP\"" "$TARGET"
154+
yq eval -i ".datanodes.hosts.datanode2.ansible_host = \"$DATANODE2_IP\"" "$TARGET"
155+
yq eval -i ".datanodes.hosts.datanode3.ansible_host = \"$DATANODE3_IP\"" "$TARGET"
176156

177157
# Override network_interface from SOURCE to TARGET for all service groups
178158
NETWORK_INTERFACE=$(yq eval '.datanode.vars.datanode_network_interface' "$SOURCE")

0 commit comments

Comments
 (0)