From 7dab27b58e3c5d428adca63eb032238449a0df7a Mon Sep 17 00:00:00 2001 From: Pierre Riteau Date: Thu, 18 Sep 2025 13:50:02 +0200 Subject: [PATCH] Define login subgroups in Ansible inventory 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. --- environments/site/tofu/inventory.tpl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/environments/site/tofu/inventory.tpl b/environments/site/tofu/inventory.tpl index 6c11b3259..9920f9ec3 100644 --- a/environments/site/tofu/inventory.tpl +++ b/environments/site/tofu/inventory.tpl @@ -27,6 +27,11 @@ ${cluster_name}_${group_name}: networks: ${jsonencode({for n in node.network: n.name => {"fixed_ip_v4": n.fixed_ip_v4, "fixed_ip_v6": n.fixed_ip_v6}})} node_fqdn: ${login_groups[group_name]["fqdns"][nodename]} %{ endfor ~} + +${group_name}: + children: + ${cluster_name}_${group_name}: + %{ endfor ~} login: