Skip to content

Commit 7c65424

Browse files
committed
renable support for volume-backed compute instances, inc. for stackhpc env
1 parent 56ce1a2 commit 7c65424

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

environments/.stackhpc/terraform/main.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ variable "volume_backed_instances" {
5454
default = false
5555
}
5656

57+
variable "root_volume_size" {
58+
default = 15
59+
}
60+
5761
variable "k3s_token" {
5862
type = string
5963
}
@@ -94,6 +98,7 @@ module "cluster" {
9498
}
9599

96100
volume_backed_instances = var.volume_backed_instances
101+
root_volume_size = var.root_volume_size
97102

98103
environment_root = var.environment_root
99104
# Can reduce volume size a lot for short-lived CI clusters:

environments/skeleton/{{cookiecutter.environment}}/terraform/compute.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,6 @@ module "compute" {
1919
k3s_server = [for n in openstack_compute_instance_v2.control["control"].network: n.fixed_ip_v4 if n.access_network][0]
2020
security_group_ids = [for o in data.openstack_networking_secgroup_v2.nonlogin: o.id]
2121
baremetal_nodes = data.external.baremetal_nodes.result
22+
volume_backed_instances = var.volume_backed_instances
23+
root_volume_size = var.root_volume_size
2224
}

environments/skeleton/{{cookiecutter.environment}}/terraform/compute/variables.tf

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,11 @@ variable "vnic_profile" {
5353
}
5454

5555
variable "volume_backed_instances" {
56-
description = "Whether to use volumes for root disks"
5756
type = bool
58-
default = false
5957
}
6058

6159
variable "root_volume_size" {
62-
description = "Size of volume for root volumes if using volume backed instances, in Gb"
6360
type = number
64-
default = 40
6561
}
6662

6763
variable "security_group_ids" {

0 commit comments

Comments
 (0)