Skip to content

Commit

Permalink
update-integration-configs/task now adds cc_service_key_client secret…
Browse files Browse the repository at this point in the history
… as credhub_secret [#155202106]
  • Loading branch information
Iryna Shustava committed Feb 21, 2018
1 parent 4cedbf3 commit c11eda0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions update-integration-configs/task
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ function main() {
local new_cats_integration_config
new_cats_integration_config=$(cat "integration-configs/${CATS_INTEGRATION_CONFIG_FILE}" | jq ".admin_password=\"${admin_password}\"")

local credhub_secret=$(bosh interpolate vars-store/${VARS_STORE_FILE} --path /uaa_clients_cc_service_key_client_secret)
new_cats_integration_config=$(echo "${new_cats_integration_config}" | jq ".credhub_secret=\"${credhub_secret}\"")

if [ -n "${SYSTEM_DOMAIN}" ]; then
new_cats_integration_config=$(echo "${new_cats_integration_config}" | jq ".api=\"api.${SYSTEM_DOMAIN}\" | .apps_domain=\"${SYSTEM_DOMAIN}\"")
fi
Expand Down

0 comments on commit c11eda0

Please sign in to comment.