Skip to content

Commit 87810cb

Browse files
committed
Terraform aio: Make instance volume size configurable
This is necessary for upgrade jobs that require a larger volume.
1 parent 117b98b commit 87810cb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

terraform/aio/vm.tf

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ variable "aio_vm_subnet" {
3333
type = string
3434
}
3535

36+
variable "aio_vm_volume_size" {
37+
type = number
38+
default = 35
39+
}
40+
3641
locals {
3742
image_is_uuid = length(regexall("^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$", var.aio_vm_image)) > 0
3843
}
@@ -59,7 +64,7 @@ resource "openstack_compute_instance_v2" "kayobe-aio" {
5964
block_device {
6065
uuid = local.image_is_uuid ? var.aio_vm_image: data.openstack_images_image_v2.image[0].id
6166
source_type = "image"
62-
volume_size = 35
67+
volume_size = var.aio_vm_volume_size
6368
boot_index = 0
6469
destination_type = "volume"
6570
delete_on_termination = true

0 commit comments

Comments
 (0)