Skip to content
This repository has been archived by the owner on Jul 3, 2021. It is now read-only.

Commit

Permalink
Apply service accounts ops files regardless of routing mode
Browse files Browse the repository at this point in the history
[#153171508]
  • Loading branch information
Konstantin Semenov committed Dec 6, 2017
1 parent 51faf63 commit 0ff87ca
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bin/generate_cloud_config
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@ main() {
done <<< "${CLOUD_CONFIG_OPS_FILES}"
fi

if [ "${bosh_iaas}" == "gcp" ]; then
ops_string="${ops_string} $(ops_string_for_service_accounts "$bosh_env")"
fi

if [ "$(bosh-cli int "${bosh_env}/director.yml" --path='/routing_mode')" == "cf" ]; then
cloud_config=$(bosh-cli int "$(repo_directory)/configurations/${bosh_iaas}/cloud-config.yml" --vars-file ${bosh_env}/director.yml)
if [ "${bosh_iaas}" == "gcp" ]; then
ops_string="${ops_string} $(ops_string_for_service_accounts "$bosh_env")"
fi
elif [ "$(bosh-cli int "${bosh_env}/director.yml" --path='/routing_mode')" == "iaas" ]; then
if [ "${bosh_iaas}" == "gcp" ]; then
cloud_config=$(bosh-cli int "$(repo_directory)/configurations/${bosh_iaas}/cloud-config.yml" --vars-file ${bosh_env}/director.yml --ops-file="$(repo_directory)/manifests/ops-files/load-balancer-target-pools.yml")
ops_string="${ops_string} $(ops_string_for_service_accounts "$bosh_env")"
elif [ "${bosh_iaas}" == "aws" ]; then
cloud_config=$(bosh-cli int "$(repo_directory)/configurations/${bosh_iaas}/cloud-config.yml" --vars-file ${bosh_env}/director.yml --ops-file="$(repo_directory)/manifests/ops-files/aws-lb-cloud-config.yml")
else
Expand Down

0 comments on commit 0ff87ca

Please sign in to comment.