diff --git a/terraform/customisations/default_custom.tf b/terraform/customisations/default_custom.tf index d5119f5e..6a89c701 100644 --- a/terraform/customisations/default_custom.tf +++ b/terraform/customisations/default_custom.tf @@ -49,4 +49,5 @@ resource "openstack_blockstorage_volume_v3" "node_volume" { name = "${var.prefix}-volume-${count.index}-node-${count.index % var.number_of_nodes}" size = var.volume_size_storage availability_zone = var.volume_availability_zone + volume_type = var.volume_type } diff --git a/terraform/environments/ci.tfvars b/terraform/environments/ci.tfvars index e9f74b19..3c45bb7c 100644 --- a/terraform/environments/ci.tfvars +++ b/terraform/environments/ci.tfvars @@ -7,6 +7,7 @@ # override:nodes_boot_from_image flavor_manager = "SCS-4V-8-50s" flavor_node = "SCS-8V-32-100s" +volume_type = "ssd" image = "Ubuntu 22.04" image_node = "Ubuntu 22.04" public = "public" diff --git a/terraform/environments/regiocloud.tfvars b/terraform/environments/regiocloud.tfvars index a7648f77..479fa2b3 100644 --- a/terraform/environments/regiocloud.tfvars +++ b/terraform/environments/regiocloud.tfvars @@ -7,6 +7,7 @@ # override:nodes_boot_from_image flavor_manager = "SCS-4V-8-50" flavor_node = "SCS-8V-32-100" +volume_type = "ssd" image = "Ubuntu 22.04" image_node = "Ubuntu 22.04" public = "public" diff --git a/terraform/variables.tf b/terraform/variables.tf index a9c0399b..a3da073a 100644 --- a/terraform/variables.tf +++ b/terraform/variables.tf @@ -37,6 +37,11 @@ variable "flavor_manager" { default = "SCS-4V:8:50" } +variable "volume_type" { + type = string + default = "__DEFAULT__" +} + variable "availability_zone" { type = string default = "south-2"