Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
Terraform Openstack
Manage
Activity
Members
Labels
Plan
Issues
10
Issue boards
Milestones
Wiki
Code
Merge requests
6
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
rc
Terraform Openstack
Merge requests
!10
Giving an option to use a predetermined image for xdmod
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Giving an option to use a predetermined image for xdmod
feat_choose_image
into
master
Overview
0
Commits
3
Pipelines
8
Changes
1
Merged
Ravi Tripathi
requested to merge
feat_choose_image
into
master
1 year ago
Overview
0
Commits
3
Pipelines
8
Changes
1
Expand
👍
0
👎
0
Merge request reports
Compare
master
version 2
32084b30
1 year ago
version 1
97dfb863
1 year ago
master (base)
and
latest version
latest version
5f4a7037
3 commits,
1 year ago
version 2
32084b30
2 commits,
1 year ago
version 1
97dfb863
1 commit,
1 year ago
1 file
+
9
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
.gitlab-ci.yml
+
9
−
4
Options
@@ -46,10 +46,15 @@ tf-apply:
tags
:
[
build
]
script
:
-
export BUILD_DATE=$(TZ=America/Chicago date +%Y%m%d%H%M%S)
-
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[0]}"
# - export TF_VAR_image_ohpc="xdmod-20230629191611"
-
echo $TF_VAR_image_ohpc
-
|
if [ -z $TF_VAR_image_ohpc ];
then
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[0]}"
echo $TF_VAR_image_ohpc
else
echo "image_ohpc defined as ${TF_VAR_image_ohpc}"
fi
-
export TF_VAR_keypair_name="os-gen-keypair-$BUILD_DATE"
-
terraform apply -auto-approve || terraform destroy -auto-approve
Loading