We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0c18bd commit 87a087aCopy full SHA for 87a087a
roles/cluster_infra/templates/outputs.tf.j2
@@ -24,16 +24,18 @@ output "cluster_nodes" {
24
}
25
26
],
27
+ {% for partition in openhpc_slurm_partitions %}
28
[
- for compute in openstack_compute_instance_v2.compute: {
29
+ for compute in openstack_compute_instance_v2.{{ partition.name }}: {
30
name = compute.name
31
ip = compute.network[0].fixed_ip_v4
- groups = ["{{ cluster_name }}_compute"],
32
+ groups = ["{{ cluster_name }}_compute", "{{ cluster_name }}_{{ partition.name }}"],
33
facts = {
34
openstack_project_id = data.openstack_identity_auth_scope_v3.scope.project_id
35
36
- ]
37
+ ]{{ ',' if not loop.last }}
38
+ {% endfor %}
39
)
40
41
0 commit comments