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 88e7e25 commit 4efb1a1Copy full SHA for 4efb1a1
environments/skeleton/{{cookiecutter.environment}}/tofu/inventory.tpl
@@ -66,11 +66,12 @@ compute:
66
%{ for group_name in keys(additional_groups) ~}
67
${cluster_name}_${group_name}:
68
hosts:
69
-%{ for node in additional_groups[group_name]["compute_instances"] ~}
+%{ for nodename, node in additional_groups[group_name]["compute_instances"] ~}
70
${ node.name }:
71
ansible_host: ${node.access_ip_v4}
72
instance_id: ${ node.id }
73
networks: ${jsonencode({for n in node.network: n.name => {"fixed_ip_v4": n.fixed_ip_v4, "fixed_ip_v6": n.fixed_ip_v6}})}
74
+ node_fqdn: ${additional_groups[group_name]["fqdns"][nodename]}
75
%{ endfor ~}
76
${group_name}:
77
children:
0 commit comments