File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
environments/skeleton/{{cookiecutter.environment}}/terraform Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -3,16 +3,22 @@ module "compute" {
3
3
4
4
for_each = var. compute
5
5
6
+ # must be set for group:
6
7
nodes = each. value . nodes
8
+ flavor = each. value . flavor
9
+
7
10
cluster_name = var. cluster_name
8
11
cluster_domain_suffix = var. cluster_domain_suffix
9
12
cluster_net_id = data. openstack_networking_network_v2 . cluster_net . id
10
13
cluster_subnet_id = data. openstack_networking_subnet_v2 . cluster_subnet . id
11
14
12
- flavor = each . value . flavor
15
+ # can be set for group, defaults to top-level value:
13
16
image_id = lookup (each. value , " image_id" , var. cluster_image_id )
14
17
vnic_type = lookup (each. value , " vnic_type" , var. vnic_type )
15
18
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
+
16
22
key_pair = var. key_pair
17
23
environment_root = var. environment_root
18
24
k3s_token = var. k3s_token
Original file line number Diff line number Diff line change @@ -52,6 +52,8 @@ variable "compute" {
52
52
image_id: Overrides variable cluster_image_id
53
53
vnic_type: Overrides variable vnic_type
54
54
vnic_profile: Overrides variable vnic_profile
55
+ volume_backed_instances: Overrides variable volume_backed_instances
56
+ root_volume_size: Overrides variable root_volume_size
55
57
EOF
56
58
}
57
59
You can’t perform that action at this time.
0 commit comments