Created
March 29, 2019 18:33
-
-
Save clhynfield/01d5835357daec6091f3c8ff579f3c29 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cred_path="/p-bosh/control-plane" | |
credhub_config="$HOME/.credhub/config.json" | |
eval "$(om bosh-env)" | |
if [ -f "$credhub_config" ]; then | |
rm "$credhub_config" | |
fi | |
credhub_ca_cert="$( | |
credhub get -n $cred_path/control_plane_internal_ca -j \ | |
| jq -r '.value.ca' | |
)" | |
credhub_secret="$( | |
credhub get -n $cred_path/credhub_admin_client_password -j \ | |
| jq -r '.value' | |
)" | |
credhub_server=https://concourse-atc.ctrlp.eng.na-3h.gaia.jpmchase.net:8844 | |
credhub_server="$( | |
bosh --deployment concourse --json instances \ | |
| jq --raw-output 'limit(1; | |
.Tables[0].Rows[]|select(.instance|startswith("web")))|.ips' | |
):8844" | |
credhub_client=concourse_to_credhub | |
unset CREDHUB_USER CREDHUB_PASSWORD | |
export CREDHUB_CLIENT CREDHUB_CA_CERT CREDHUB_SECRET CREDHUB_SERVER | |
credhub api |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment