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

removed \ escape char before . and using 0th element in the array to access the 1st element

parent 3b2f8cc7
No related branches found
No related tags found
2 merge requests!6Add CD feature to the repo,!1wip: test-keypair without file
Pipeline #8082 passed with stages
in 3 minutes and 6 seconds
......@@ -49,9 +49,9 @@ tf-apply:
- 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}'))
- export TF_VAR_image_ohpc="${XDMOD_IMAGES[1]}"
- export TF_VAR_image_ohpc="xdmod-20230629191611"
# - echo $TF_VAR_image_ohpc
- export TF_VAR_image_ohpc="${XDMOD_IMAGES[0]}"
# - export TF_VAR_image_ohpc="xdmod-20230629191611"
- echo $TF_VAR_image_ohpc
- terraform apply -auto-approve || terraform destroy -auto-approve
clean-up:
......
......@@ -152,8 +152,8 @@ resource "null_resource" "ops" {
provisioner "remote-exec" {
inline = [
"sudo sed -i -E 's/xdmod\.\.nip\.io/xdmod\.rc\.uab\.edu/g'' /etc/httpd/conf.d/xdmod.conf",
"sudo sed -i -E 's/xdmod\.\.nip\.io/xdmod\.rc\.uab\.edu/g'' /etc/xdmod/simplesamlphp/config/config.php",
"sudo sed -i -E 's/xdmod..nip.io/xdmod.rc.uab.edu/g'' /etc/httpd/conf.d/xdmod.conf",
"sudo sed -i -E 's/xdmod..nip.io/xdmod.rc.uab.edu/g'' /etc/xdmod/simplesamlphp/config/config.php",
]
}
......
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