Skip to content

Commit

Permalink
Fix inventory addon, fixed user ssh test
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisjbell committed Mar 20, 2023
1 parent 33894f6 commit ac1c761
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion ci/scripts/test-deployment
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,8 @@ if [[ "$SKIP_SMOKE_TESTS" == "false" ]]; then
chmod 600 ~/.ssh/id_test_user

ip="$(genesis ci-vsphere-baseline.yml bosh vms --json | jq -r '.Tables[0].Rows[0].ips')"
echo "uname -a; echo -n 'User: '; whoami; uptime" | ssh -i ~/.ssh.id_test_user -o StrictHostKeyChecking=accept-new -l test-user $ip
echo "Attempting to SSH to $ip as user 'test-user'..."
echo "uname -a && echo -n 'User: ' && whoami && uptime" | ssh -i ~/.ssh/id_test_user -o StrictHostKeyChecking=accept-new -l test-user $ip

genesis "do" "${DEPLOY_ENV}" -- inventory

Expand Down
3 changes: 2 additions & 1 deletion hooks/addon
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,8 @@ generate-vpn-config)
;;

inventory)
exec bosh run-errand inventory
bosh run-errand inventory
exit 0
;;

ssh)
Expand Down

0 comments on commit ac1c761

Please sign in to comment.