File tree 1 file changed +2
-1
lines changed
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -158,6 +158,7 @@ Epilog=/etc/slurm/slurm.epilog.clean
158
158
{% set hostlists = (inventory_group_hosts | hostlist_expression ) %} {# hosts in inventory group aren't necessarily a single hostlist expression #}
159
159
{% for hostlist in hostlists %}
160
160
NodeName={{ hostlist }} {{ '' -}}
161
+ Feature=nodegroup_{{ nodegroup.name }} {{ '' -}}
161
162
State=UNKNOWN {{ '' -}}
162
163
RealMemory={{ nodegroup.ram_mb | default(ram_mb) }} {{ '' -}}
163
164
Sockets={{first_host_hv['ansible_processor_count'] }} {{ '' -}}
@@ -168,7 +169,7 @@ NodeName={{ hostlist }} {{ '' -}}
168
169
{% endfor %} {# hostlists #}
169
170
{% endif %} {# 1 or more hosts in inventory #}
170
171
171
- NodeSet={{ nodegroup.name }} Nodes= {{ ','.join(hostlists | default(['"" '] )) }}{# no support for creating nodesets by Feature #}
172
+ NodeSet=nodegroup_ {{ nodegroup.name }} Feature=nodegroup_ {{ nodegroup.name }}{# no support for creating nodesets by Feature #}
172
173
173
174
{% endfor %}
174
175
You can’t perform that action at this time.
0 commit comments