Browse Source

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
tags/v1.4
Soujanya R M 2 months ago
parent
commit
f4644a3399
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      tools/deployment/aiab/common/deploy-airship.sh

+ 2
- 1
tools/deployment/aiab/common/deploy-airship.sh View File

@@ -319,6 +319,7 @@ function print_dashboards() {
319 319
   HORIZON_PORT=$(kubectl -n openstack get service horizon-dashboard -o jsonpath="{.spec.ports[0].nodePort}")
320 320
   MAAS_PORT=$(kubectl -n ucp get service maas-region-ui -o jsonpath="{.spec.ports[0].nodePort}")
321 321
   MASS_PASS=$(awk '/^data:/ {print $2}' ${WORKSPACE}/treasuremap/site/${TARGET_SITE}/secrets/passphrases/ucp_maas_admin_password.yaml)
322
+  HORIZON_PASS=$(awk '/^data:/ {print $2}' ${WORKSPACE}/treasuremap/site/${TARGET_SITE}/secrets/passphrases/osh_horizon_oslo_db_password.yaml)
322 323
   set +x
323 324
   echo " "
324 325
   echo "OpenStack Horizon dashboard is available on this host at the following URL:"
@@ -329,7 +330,7 @@ function print_dashboards() {
329 330
   echo "Credentials:"
330 331
   echo "  Domain: default"
331 332
   echo "  Username: admin"
332
-  echo "  Password: password"
333
+  echo "  Password: ${HORIZON_PASS}"
333 334
   echo " "
334 335
   echo "OpenStack CLI commands could be launched via \`./openstack\` script, e.g.:"
335 336
   echo "  # cd ${WORKSPACE}/treasuremap/tools/"

Loading…
Cancel
Save