File tree Expand file tree Collapse file tree 3 files changed +6
-0
lines changed
environments/skeleton/{{cookiecutter.environment}}/tofu Expand file tree Collapse file tree 3 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ resource "local_file" "hosts" {
7
7
" control_fqdn" : local.control_fqdn
8
8
" login_groups" : module.login
9
9
" compute_groups" : module.compute
10
+ " baremetal_compute_instances" : flatten ([for group in keys (module. compute ) : keys (module. compute [group ][" compute_instances" ]) if module . compute [group ][" is_baremetal" ]])
10
11
" additional_groups" : module.additional
11
12
" state_dir" : var.state_dir
12
13
" cluster_home_volume" : var.home_volume_provisioning != " none"
Original file line number Diff line number Diff line change 4
4
cluster_domain_suffix: ${ cluster_domain_suffix}
5
5
cluster_home_volume: ${ cluster_home_volume}
6
6
cluster_compute_groups: ${ jsonencode(keys(compute_groups))}
7
+ topology_baremetal_instances: ${ jsonencode(baremetal_compute_instances)}
7
8
8
9
control:
9
10
hosts:
Original file line number Diff line number Diff line change @@ -186,6 +186,10 @@ output "compute_instances" {
186
186
value = local. compute_instances
187
187
}
188
188
189
+ output "is_baremetal" {
190
+ value = var. match_ironic_node
191
+ }
192
+
189
193
output "image_id" {
190
194
value = var. image_id
191
195
}
You can’t perform that action at this time.
0 commit comments