Skip to content

Commit

Permalink
renable support for volume-backed compute instances, inc. for stackhp…
Browse files Browse the repository at this point in the history
…c env
  • Loading branch information
sjpb committed Nov 22, 2024
1 parent 56ce1a2 commit 7c65424
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 5 additions & 0 deletions environments/.stackhpc/terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ variable "volume_backed_instances" {
default = false
}

variable "root_volume_size" {
default = 15
}

variable "k3s_token" {
type = string
}
Expand Down Expand Up @@ -94,6 +98,7 @@ module "cluster" {
}

volume_backed_instances = var.volume_backed_instances
root_volume_size = var.root_volume_size

environment_root = var.environment_root
# Can reduce volume size a lot for short-lived CI clusters:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,6 @@ module "compute" {
k3s_server = [for n in openstack_compute_instance_v2.control["control"].network: n.fixed_ip_v4 if n.access_network][0]
security_group_ids = [for o in data.openstack_networking_secgroup_v2.nonlogin: o.id]
baremetal_nodes = data.external.baremetal_nodes.result
volume_backed_instances = var.volume_backed_instances
root_volume_size = var.root_volume_size
}
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,11 @@ variable "vnic_profile" {
}

variable "volume_backed_instances" {
description = "Whether to use volumes for root disks"
type = bool
default = false
}

variable "root_volume_size" {
description = "Size of volume for root volumes if using volume backed instances, in Gb"
type = number
default = 40
}

variable "security_group_ids" {
Expand Down

0 comments on commit 7c65424

Please sign in to comment.