File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -101,6 +101,7 @@ jobs:
101101 -var "source_image_name=${{ fromJSON(env.FAT_IMAGES)['cluster_image'][matrix.build.source_image_name_key] }}" \
102102 -var "image_name=${{ matrix.build.image_name }}" \
103103 -var "inventory_groups=${{ matrix.build.inventory_groups }}" \
104+ -var "use_blockstorage_volume=true" \
104105 -var "volume_size=${{ matrix.build.volume_size }}" \
105106 openstack.pkr.hcl
106107
Original file line number Diff line number Diff line change 11flavor = " ec1.large"
2- use_blockstorage_volume = false
32volume_type = " unencrypted"
4- volume_size = null
53networks = [" 909e49e8-6911-473a-bf88-0495ca63853c" ] # slurmapp-ci
64ssh_keypair_name = " slurm-app-ci"
75ssh_private_key_file = " ~/.ssh/id_rsa"
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ variable "manifest_output_path" {
109109
110110variable "use_blockstorage_volume" {
111111 type = bool
112- default = true
112+ default = false
113113}
114114
115115variable "volume_type" {
@@ -119,7 +119,7 @@ variable "volume_type" {
119119
120120variable "volume_size" {
121121 type = number
122- default = 15
122+ default = null
123123}
124124
125125variable "image_disk_format" {
@@ -178,7 +178,7 @@ source "openstack" "openhpc" {
178178 ssh_bastion_private_key_file = var. ssh_bastion_private_key_file
179179
180180 # Output image:
181- # image_disk_format = "qcow2"
181+ image_disk_format = var . use_blockstorage_volume ? " qcow2" : null
182182 image_visibility = var. image_visibility
183183
184184}
You can’t perform that action at this time.
0 commit comments