Get password for shipyard user for special variable if it exists

In case users have OS_PASSWORD set for a different cloud, it may
have sense to use different variable just for shiyard user's password.

Change-Id: I709df849e1109582917453c9fcec8bed565c2814
This commit is contained in:
Jiří Suchomel 2019-06-06 17:15:17 +02:00
parent 89a8eda43e
commit d045def452
3 changed files with 6 additions and 3 deletions

View File

@ -37,7 +37,8 @@ SHIPYARD_HOSTPATH=${SHIPYARD_HOSTPATH:-"/home/shipyard/host"}
# set default value for OS_PASSWORD if it's not set
# this doesn't actually get exported to environment
# unless the script is sourced
export OS_PASSWORD=${OS_PASSWORD:-password}
OS_SHIPYARD_PASSWORD=${OS_SHIPYARD_PASSWORD:-${OS_PASSWORD}}
export OS_PASSWORD=${OS_SHIPYARD_PASSWORD:-password}
# Execute Shipyard CLI
#

View File

@ -33,7 +33,8 @@ namespace="${namespace:-ucp}"
export max_shipyard_count=${max_shipyard_count:-60}
export shipyard_query_time=${shipyard_query_time:-90}
export OS_AUTH_URL="${OS_AUTH_URL:-http://keystone.${namespace}.svc.cluster.local:80/v3}"
export OS_PASSWORD="${OS_PASSWORD:-password}"
OS_SHIPYARD_PASSWORD=${OS_SHIPYARD_PASSWORD:-${OS_PASSWORD}}
export OS_PASSWORD=${OS_SHIPYARD_PASSWORD:-password}
export OS_PROJECT_DOMAIN_NAME="${OS_PROJECT_DOMAIN_NAME:-default}"
export OS_PROJECT_NAME="${OS_PROJECT_NAME:-service}"
export OS_USERNAME="${OS_USERNAME:-shipyard}"

View File

@ -42,7 +42,8 @@ SHIPYARD_IMAGE="${SHIPYARD_IMAGE:-quay.io/airshipit/shipyard:master}"
# set default value for OS_PASSWORD if it's not set
# this doesn't actually get exported to environment
# unless the script is sourced
export OS_PASSWORD=${OS_PASSWORD:-password}
OS_SHIPYARD_PASSWORD=${OS_SHIPYARD_PASSWORD:-${OS_PASSWORD}}
export OS_PASSWORD=${OS_SHIPYARD_PASSWORD:-password}
# Define Base Docker Command
base_docker_command=$(cat << EndOfCommand