From f4644a33991189b8d7da7ab7fb39f6c42207fe2c Mon Sep 17 00:00:00 2001 From: Soujanya R M Date: Mon, 5 Aug 2019 08:31:18 +0000 Subject: [PATCH] Display correct password at end of deploy script Instead of printing a string constant "password" use password from Horizon secret file to display at end of deploy script. Change-Id: I620a328eacfdbe6400648703938d16b83f165d5b --- tools/deployment/aiab/common/deploy-airship.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/deployment/aiab/common/deploy-airship.sh b/tools/deployment/aiab/common/deploy-airship.sh index 76524f789..cfe8e6bfc 100755 --- a/tools/deployment/aiab/common/deploy-airship.sh +++ b/tools/deployment/aiab/common/deploy-airship.sh @@ -319,6 +319,7 @@ function print_dashboards() { HORIZON_PORT=$(kubectl -n openstack get service horizon-dashboard -o jsonpath="{.spec.ports[0].nodePort}") MAAS_PORT=$(kubectl -n ucp get service maas-region-ui -o jsonpath="{.spec.ports[0].nodePort}") MASS_PASS=$(awk '/^data:/ {print $2}' ${WORKSPACE}/treasuremap/site/${TARGET_SITE}/secrets/passphrases/ucp_maas_admin_password.yaml) + HORIZON_PASS=$(awk '/^data:/ {print $2}' ${WORKSPACE}/treasuremap/site/${TARGET_SITE}/secrets/passphrases/osh_horizon_oslo_db_password.yaml) set +x echo " " echo "OpenStack Horizon dashboard is available on this host at the following URL:" @@ -329,7 +330,7 @@ function print_dashboards() { echo "Credentials:" echo " Domain: default" echo " Username: admin" - echo " Password: password" + echo " Password: ${HORIZON_PASS}" echo " " echo "OpenStack CLI commands could be launched via \`./openstack\` script, e.g.:" echo " # cd ${WORKSPACE}/treasuremap/tools/"