Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

terraform: add support for volume types #1734

Merged
merged 1 commit into from
Sep 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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