Skip to content

Commit

Permalink
terraform: add support for volume types
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 committed Sep 8, 2023
1 parent 2d61b36 commit 06bdf7e
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .zuul.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -149,12 +149,12 @@
- yamllint
- flake8
- testbed-deploy
- testbed-deploy-ceph
- testbed-deploy-stable
- testbed-update-stable
- testbed-upgrade
- testbed-upgrade-ceph
- testbed-upgrade-stable
# - testbed-deploy-ceph
# - testbed-deploy-stable
# - testbed-update-stable
# - testbed-upgrade
# - testbed-upgrade-ceph
# - testbed-upgrade-stable
gate:
jobs:
- ansible-lint
Expand Down
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 06bdf7e

Please sign in to comment.