From 600964973f38bce18889b91d49424711745dcac4 Mon Sep 17 00:00:00 2001 From: Ernie Billing Date: Fri, 8 Jan 2021 15:59:29 -0800 Subject: [PATCH] added credhub env variables --- scripts/push-broker.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/scripts/push-broker.sh b/scripts/push-broker.sh index 13047b9b7..d93992c5a 100755 --- a/scripts/push-broker.sh +++ b/scripts/push-broker.sh @@ -67,6 +67,26 @@ if [[ ${GSB_BROKERPAK_BUILTIN_PATH} ]]; then cf set-env "${APP_NAME}" GSB_BROKERPAK_BUILTIN_PATH "${GSB_BROKERPAK_BUILTIN_PATH}" fi +if [[ ${CH_CRED_HUB_URL} ]]; then + cf set-env "${APP_NAME}" CH_CRED_HUB_URL "${CH_CRED_HUB_URL}" +fi + +if [[ ${CH_UAA_URL} ]]; then + cf set-env "${APP_NAME}" CH_UAA_URL "${CH_UAA_URL}" +fi + +if [[ ${CH_UAA_CLIENT_NAME} ]]; then + cf set-env "${APP_NAME}" CH_UAA_CLIENT_NAME "${CH_UAA_CLIENT_NAME}" +fi + +if [[ ${CH_UAA_CLIENT_SECRET} ]]; then + cf set-env "${APP_NAME}" CH_UAA_CLIENT_SECRET "${CH_UAA_CLIENT_SECRET}" +fi + +if [[ ${CH_SKIP_SSL_VALIDATION} ]]; then + cf set-env "${APP_NAME}" "${CH_SKIP_SSL_VALIDATION}" +fi + if [[ ${DB_TLS} ]]; then cf set-env "${APP_NAME}" DB_TLS "${DB_TLS}" fi