Skip to content

Commit

Permalink
MGMT-18905: move Terraform params to env (openshift#56868)
Browse files Browse the repository at this point in the history
  • Loading branch information
eifrach authored Sep 18, 2024
1 parent 1aa98e1 commit 2281d2d
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,18 @@ iso_name = "assisted-test-infra-machine-template"
build_id = "${BUILD_ID}"
EOF

# Terraform Params
# move to new ENV value with auto load
export CI_CREDENTIALS_DIR=/var/run/vault/assisted-ci-vault

for file in $CI_CREDENTIALS_DIR/TF_VAR_*; do
if [[ "$file" == *"TF_VAR_"* ]]; then
key=$(basename -- $file)
export $key="$(cat $file)"
fi
done


terraform init -input=false
terraform apply -var-file=nutanix-params.hcl -input=false -auto-approve
IP=$(terraform output ip_address)
Expand Down

0 comments on commit 2281d2d

Please sign in to comment.