Skip to content

Commit

Permalink
terraform: add support for volume types (#1734)
Browse files Browse the repository at this point in the history
With the volume_type variable it is possible to set the volume
type of the volumes used for ceph. By default the __DEFAULT__
volume type is used.

Signed-off-by: Christian Berendt <[email protected]>
  • Loading branch information
berendt authored Sep 9, 2023
1 parent 43c9532 commit e218ac1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions terraform/customisations/default_custom.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
1 change: 1 addition & 0 deletions terraform/environments/ci.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions terraform/environments/regiocloud.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
5 changes: 5 additions & 0 deletions terraform/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit e218ac1

Please sign in to comment.