Skip to content

Commit ff0f983

Browse files
committed
cope with clouds with default encrypted volumes for packer build
1 parent 1089e55 commit ff0f983

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

environments/.stackhpc/LEAFCLOUD.pkrvars.hcl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
flavor = "en1.xsmall"
22
use_blockstorage_volume = true
3-
volume_size = 12 # GB. Compatible with SMS-lab's general.v1.tiny
3+
volume_size = 12 # GB. Compatible with SMS-lab's general.v1.tiny
4+
volume_type = "unencrypted"
45
image_disk_format = "qcow2"
56
networks = ["909e49e8-6911-473a-bf88-0495ca63853c"] # slurmapp-ci
67
source_image_name = "openhpc-230804-1754-80b8d714" # https://github.com/stackhpc/ansible-slurm-appliance/pull/298

packer/openstack.pkr.hcl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,11 @@ variable "use_blockstorage_volume" {
120120
default = false
121121
}
122122

123+
variable "volume_type" {
124+
type = string
125+
default = null
126+
}
127+
123128
variable "volume_size" {
124129
type = number
125130
default = null # When not specified use the size of the builder instance root disk
@@ -139,6 +144,7 @@ source "openstack" "openhpc" {
139144
flavor = "${var.flavor}"
140145
volume_size = "${var.volume_size}"
141146
use_blockstorage_volume = "${var.use_blockstorage_volume}"
147+
volume_type = var.volume_type
142148
image_disk_format = "${var.image_disk_format}"
143149
metadata = "${var.metadata}"
144150
networks = "${var.networks}"

0 commit comments

Comments
 (0)