Skip to content

Commit 7f15afc

Browse files
committed
make packer build volume-backed optional again
1 parent 102e19a commit 7f15afc

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packer/openstack.pkr.hcl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,11 @@ variable "manifest_output_path" {
118118
default = "packer-manifest.json"
119119
}
120120

121+
variable "use_blockstorage_volume" {
122+
type = bool
123+
default = true
124+
}
125+
121126
variable "volume_type" {
122127
type = string
123128
default = null
@@ -157,7 +162,7 @@ variable "groups" {
157162
source "openstack" "openhpc" {
158163
# Build VM:
159164
flavor = var.flavor
160-
use_blockstorage_volume = true
165+
use_blockstorage_volume = var.use_blockstorage_volume
161166
volume_type = var.volume_type
162167
volume_size = var.volume_size[source.name]
163168
metadata = var.metadata

0 commit comments

Comments
 (0)