File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -2,14 +2,15 @@ AutoDetect=off
2
2
{% for part in openhpc_slurm_partitions %}
3
3
{% set nodelist = [] %}
4
4
{% for group in part .get ('groups' , [part ]) %}
5
+ {% set group_name = group .cluster_name |default (openhpc_cluster_name ) ~ '_' ~ group .name %}
6
+ {% set inventory_group_hosts = groups .get (group_name , []) %}
5
7
{% if 'gres_autodetect' in group %}
8
+ {% for hostlist in (inventory_group_hosts | hostlist_expression ) %}
6
9
NodeName={{ hostlist }} AutoDetect={{ group.gres_autodetect }}
10
+ {% endfor %}
7
11
{% elif 'gres' in group %}
8
12
{% for gres in group .gres %}
9
13
{% set gres_name , gres_type , _ = gres .conf .split (':' ) %}
10
- {% set group_name = group .cluster_name |default (openhpc_cluster_name ) ~ '_' ~ group .name %}
11
- {% set file = gres .file | default ('' ) %}
12
- {% set inventory_group_hosts = groups .get (group_name , []) %}
13
14
{% for hostlist in (inventory_group_hosts | hostlist_expression ) %}
14
15
NodeName={{ hostlist }} Name={{ gres_name }} Type={{ gres_type }} File={{ gres.file }}
15
16
You can’t perform that action at this time.
0 commit comments