Skip to content

Commit 0a47143

Browse files
committed
fix: wpb-22439 fix SSH_OPTS for all the ssh commands in cd_staging.sh
1 parent 886f200 commit 0a47143

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

offline/cd_staging.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,12 @@ echo "Running ansible playbook setup_nodes.yml via adminhost ($adminhost)..."
124124
ansible-playbook -i inventory.yml setup_nodes.yml --private-key "ssh_private_key"
125125

126126
# user demo needs to exist
127-
ssh "$SSH_OPTS" "demo@$adminhost" wget -q "https://s3-eu-west-1.amazonaws.com/public.wire.com/artifacts/${ARTIFACT}.tgz"
127+
ssh $SSH_OPTS "demo@$adminhost" wget -q "https://s3-eu-west-1.amazonaws.com/public.wire.com/artifacts/${ARTIFACT}.tgz"
128128

129-
ssh "$SSH_OPTS" "demo@$adminhost" tar xzf "$ARTIFACT.tgz"
129+
ssh $SSH_OPTS "demo@$adminhost" tar xzf "$ARTIFACT.tgz"
130130

131131
# override for ingress-nginx-controller values for hetzner environment $TF_DIR/setup_nodes.yml
132-
scp "$SSH_OPTS" "$VALUES_DIR/ingress-nginx-controller/hetzner-ci.example.yaml" "demo@$adminhost:./values/ingress-nginx-controller/prod-values.example.yaml"
132+
scp $SSH_OPTS "$VALUES_DIR/ingress-nginx-controller/hetzner-ci.example.yaml" "demo@$adminhost:./values/ingress-nginx-controller/prod-values.example.yaml"
133133

134134
# Source and target files
135135
SOURCE="inventory.yml"
@@ -177,12 +177,12 @@ yq eval -i ".all.vars.ansible_ssh_private_key_file = \"ssh/ssh_private_key\"" "$
177177

178178
echo "created secondary inventory file $TARGET successfully"
179179

180-
scp "$SSH_OPTS" "$TARGET" "demo@$adminhost":./ansible/inventory/offline/inventory.yml
180+
scp $SSH_OPTS "$TARGET" "demo@$adminhost":./ansible/inventory/offline/inventory.yml
181181

182-
ssh "$SSH_OPTS" "demo@$adminhost" cat ./ansible/inventory/offline/inventory.yml || true
182+
ssh $SSH_OPTS "demo@$adminhost" cat ./ansible/inventory/offline/inventory.yml || true
183183

184184
# NOTE: Agent is forwarded; so that the adminhost can provision the other boxes
185-
ssh "$SSH_OPTS" -A "demo@$adminhost" ./bin/offline-deploy.sh
185+
ssh $SSH_OPTS -A "demo@$adminhost" ./bin/offline-deploy.sh
186186

187187
echo ""
188188
echo "Wire offline deployment completed successfully!"

0 commit comments

Comments
 (0)