Skip to content

Commit 6929272

Browse files
authored
fix volume_backed_instances not working for compute nodes (#527)
1 parent 69d9cd8 commit 6929272

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,22 @@ module "compute" {
33

44
for_each = var.compute
55

6+
# must be set for group:
67
nodes = each.value.nodes
8+
flavor = each.value.flavor
9+
710
cluster_name = var.cluster_name
811
cluster_domain_suffix = var.cluster_domain_suffix
912
cluster_net_id = data.openstack_networking_network_v2.cluster_net.id
1013
cluster_subnet_id = data.openstack_networking_subnet_v2.cluster_subnet.id
1114

12-
flavor = each.value.flavor
15+
# can be set for group, defaults to top-level value:
1316
image_id = lookup(each.value, "image_id", var.cluster_image_id)
1417
vnic_type = lookup(each.value, "vnic_type", var.vnic_type)
1518
vnic_profile = lookup(each.value, "vnic_profile", var.vnic_profile)
19+
volume_backed_instances = lookup(each.value, "volume_backed_instances", var.volume_backed_instances)
20+
root_volume_size = lookup(each.value, "root_volume_size", var.root_volume_size)
21+
1622
key_pair = var.key_pair
1723
environment_root = var.environment_root
1824
k3s_token = var.k3s_token

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ variable "compute" {
5252
image_id: Overrides variable cluster_image_id
5353
vnic_type: Overrides variable vnic_type
5454
vnic_profile: Overrides variable vnic_profile
55+
volume_backed_instances: Overrides variable volume_backed_instances
56+
root_volume_size: Overrides variable root_volume_size
5557
EOF
5658
}
5759

0 commit comments

Comments
 (0)