Skip to content
Snippets Groups Projects
Commit 97849f29 authored by Ravi Tripathi's avatar Ravi Tripathi
Browse files

Add a unique value for TF variable keypair_name

parent f0e98777
No related branches found
No related tags found
2 merge requests!6Add CD feature to the repo,!1wip: test-keypair without file
Pipeline #8056 failed with stages
in 2 minutes and 51 seconds
...@@ -44,6 +44,7 @@ tf-apply: ...@@ -44,6 +44,7 @@ tf-apply:
- export BUILD_DATE=$(TZ=America/Chicago date +%Y%m%d) - export BUILD_DATE=$(TZ=America/Chicago date +%Y%m%d)
- export TF_VAR_internal_network="tf-clusternet-$BUILD_DATE" - export TF_VAR_internal_network="tf-clusternet-$BUILD_DATE"
- export TF_VAR_external_network="tf-dmznet-$BUILD_DATE" - export TF_VAR_external_network="tf-dmznet-$BUILD_DATE"
- export TF_VAR_keypair_name="os-gen-keypair-$BUILD_DATE"
- XDMOD_IMAGES=($(openstack image list --sort-column Name --sort-descending -f value -c Name -c ID | grep -P ' xdmod-\d{14}$' | awk '{print $2}')) - XDMOD_IMAGES=($(openstack image list --sort-column Name --sort-descending -f value -c Name -c ID | grep -P ' xdmod-\d{14}$' | awk '{print $2}'))
- export TF_VAR_image_ohpc="${XDMOD_IMAGES[1]}" - export TF_VAR_image_ohpc="${XDMOD_IMAGES[1]}"
- echo $TF_VAR_image_ohpc - echo $TF_VAR_image_ohpc
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment