Skip to content

Commit 4efb1a1

Browse files
committed
add node_fqdn from PR#702 to additional_nodes
1 parent 88e7e25 commit 4efb1a1

File tree

1 file changed

+2
-1
lines changed
  • environments/skeleton/{{cookiecutter.environment}}/tofu

1 file changed

+2
-1
lines changed

environments/skeleton/{{cookiecutter.environment}}/tofu/inventory.tpl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,12 @@ compute:
6666
%{ for group_name in keys(additional_groups) ~}
6767
${cluster_name}_${group_name}:
6868
hosts:
69-
%{ for node in additional_groups[group_name]["compute_instances"] ~}
69+
%{ for nodename, node in additional_groups[group_name]["compute_instances"] ~}
7070
${ node.name }:
7171
ansible_host: ${node.access_ip_v4}
7272
instance_id: ${ node.id }
7373
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]}
7475
%{ endfor ~}
7576
${group_name}:
7677
children:

0 commit comments

Comments
 (0)