Do not require the bootstrap password to come in via arguments

Currently when this is being ran, and say ara is being used to
capture the running of kolla-ansible ara will capture the full
command line ran (even if no_log is set); because by default these
modules do not hide what they are running.

So to avoid the situation where the command line shows the password
have this also be able to take in the password via an environment
variable as well (which ara will not capture).

Change-Id: I4d42d592d8031d0f3923bccc6b2db1149af08e75
This commit is contained in:
Joshua Harlow 2018-03-26 17:03:33 -07:00
parent 04924d488f
commit 556ea33076
1 changed files with 5 additions and 0 deletions

View File

@ -9,6 +9,11 @@ set -x
USERNAME=$1
PASSWORD=$2
if [ -z "$PASSWORD" ]; then
# Avoid having the password always come in via CLI (which makes
# it show up in things like ara)
PASSWORD="$OS_BOOTSTRAP_PASSWORD"
fi
PROJECT=$3
ROLE=$4
ADMIN_URL=$5