Skip to content

Commit fad0ff4

Browse files
authored
Define login subgroups in Ansible inventory (#727)
It resolves some limitations with login subgroups, such as difficulty to bind the Open OnDemand service to a specific node when naming of the nodes is not predictable. This replicates what is already done for compute subgroups.
1 parent c12ec99 commit fad0ff4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

environments/site/tofu/inventory.tpl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ ${cluster_name}_${group_name}:
2727
networks: ${jsonencode({for n in node.network: n.name => {"fixed_ip_v4": n.fixed_ip_v4, "fixed_ip_v6": n.fixed_ip_v6}})}
2828
node_fqdn: ${login_groups[group_name]["fqdns"][nodename]}
2929
%{ endfor ~}
30+
31+
${group_name}:
32+
children:
33+
${cluster_name}_${group_name}:
34+
3035
%{ endfor ~}
3136

3237
login:

0 commit comments

Comments
 (0)