Skip to content

Commit ea7902a

Browse files
committed
add nodegroup.features
1 parent 6dabb2f commit ea7902a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/slurm.conf.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ Epilog=/etc/slurm/slurm.epilog.clean
158158
{% set hostlists = (inventory_group_hosts | hostlist_expression) %}{# hosts in inventory group aren't necessarily a single hostlist expression #}
159159
{% for hostlist in hostlists %}
160160
NodeName={{ hostlist }} {{ '' -}}
161-
Features=nodegroup_{{ nodegroup.name }} {{ '' -}}
161+
Features={{ (['nodegroup_' ~ nodegroup.name] + nodegroup.features | default([]) ) | join(',') }} {{ '' -}}
162162
State=UNKNOWN {{ '' -}}
163163
RealMemory={{ nodegroup.ram_mb | default(ram_mb) }} {{ '' -}}
164164
Sockets={{ first_host_hv['ansible_processor_count'] }} {{ '' -}}

0 commit comments

Comments
 (0)