Skip to content

Commit 7a49b01

Browse files
committed
allow for extra build configuration
1 parent 2b87854 commit 7a49b01

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

.github/workflows/extra.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

environments/.stackhpc/LEAFCLOUD.pkrvars.hcl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
flavor = "ec1.large"
2-
use_blockstorage_volume = false
32
volume_type = "unencrypted"
4-
volume_size = null
53
networks = ["909e49e8-6911-473a-bf88-0495ca63853c"] # slurmapp-ci
64
ssh_keypair_name = "slurm-app-ci"
75
ssh_private_key_file = "~/.ssh/id_rsa"

packer/openstack.pkr.hcl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ variable "manifest_output_path" {
109109

110110
variable "use_blockstorage_volume" {
111111
type = bool
112-
default = true
112+
default = false
113113
}
114114

115115
variable "volume_type" {
@@ -119,7 +119,7 @@ variable "volume_type" {
119119

120120
variable "volume_size" {
121121
type = number
122-
default = 15
122+
default = null
123123
}
124124

125125
variable "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
}

0 commit comments

Comments
 (0)