@@ -27,6 +27,7 @@ NodeName={{ node }}
27
27
{% set hostlists = (inventory_group_hosts | hostlist_expression ) %} {# hosts in inventory group aren't necessarily a single hostlist expression #}
28
28
{% for hostlist in hostlists %}
29
29
NodeName={{ hostlist }} {{ '' -}}
30
+ Feature={{ nodegroup.name }} {{ '' -}}
30
31
State=UNKNOWN {{ '' -}}
31
32
RealMemory={{ nodegroup.ram_mb | default(ram_mb) }} {{ '' -}}
32
33
Sockets={{first_host_hv['ansible_processor_count'] }} {{ '' -}}
@@ -37,7 +38,7 @@ NodeName={{ hostlist }} {{ '' -}}
37
38
{% endfor %} {# hostlists #}
38
39
{% endif %} {# 1 or more hosts in inventory #}
39
40
40
- NodeSet={{ nodegroup.name }} Nodes ={{ ','.join(hostlists | default(['"" '] )) }} {# no support for creating nodesets by Feature # }
41
+ NodeSet={{ nodegroup.name }} Feature ={{ nodegroup.name } }
41
42
42
43
{% endfor %}
43
44
@@ -49,7 +50,8 @@ NodeName=nonesuch
49
50
PartitionName={{partition.name}} {{ '' -}}
50
51
Default={{ partition.get('default', 'YES') }} {{ '' -}}
51
52
MaxTime={{ partition.get('maxtime', openhpc_job_maxtime) }} {{ '' -}}
52
- State=UP Nodes={{ partition.get('groups', [partition.name] ) | join(',') }} {{ '' -}}
53
+ State=UP {{ '' -}}
54
+ Nodes={{ partition.get('groups', [partition.name] ) | join(',') }} {{ '' -}}
53
55
{{ partition.params | default({}) | dict2parameters }}
54
56
{% endfor %} {# openhpc_partitions #}
55
57
0 commit comments