We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 117b98b commit 87810cbCopy full SHA for 87810cb
terraform/aio/vm.tf
@@ -33,6 +33,11 @@ variable "aio_vm_subnet" {
33
type = string
34
}
35
36
+variable "aio_vm_volume_size" {
37
+ type = number
38
+ default = 35
39
+}
40
+
41
locals {
42
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
43
@@ -59,7 +64,7 @@ resource "openstack_compute_instance_v2" "kayobe-aio" {
59
64
block_device {
60
65
uuid = local.image_is_uuid ? var.aio_vm_image: data.openstack_images_image_v2.image[0].id
61
66
source_type = "image"
62
- volume_size = 35
67
+ volume_size = var.aio_vm_volume_size
63
68
boot_index = 0
69
destination_type = "volume"
70
delete_on_termination = true
0 commit comments