Skip to content

Commit 9f7b19d

Browse files
committed
fix NodeName= lines missing newlines between them when multiple hostlists within a node group
1 parent f5d0698 commit 9f7b19d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/slurm.conf.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,8 @@ PropagateResourceLimitsExcept=MEMLOCK
146146
Epilog=/etc/slurm/slurm.epilog.clean
147147

148148
# COMPUTE NODES
149-
# OpenHPC default configuration
150149
{% for nodegroup in openhpc_nodegroups %}
150+
# nodegroup: {{ nodegroup.name }}
151151
{% set inventory_group_name = openhpc_cluster_name ~ '_' ~ nodegroup.name %}
152152
{% set inventory_group_hosts = groups.get(inventory_group_name, []) %}
153153
{% if inventory_group_hosts | length > 0 %}
@@ -166,9 +166,9 @@ NodeName={{ hostlist }} {{ '' -}}
166166
ThreadsPerCore={{ first_host_hv['ansible_processor_threads_per_core'] }} {{ '' -}}
167167
{{ nodegroup.node_params | default({}) | dict2parameters }} {{ '' -}}
168168
{% if 'gres' in nodegroup %}Gres={{ ','.join(nodegroup.gres | map(attribute='conf')) }}{% endif %}
169+
169170
{% endfor %}{# hostlists #}
170171
{% endif %}{# 1 or more hosts in inventory #}
171-
172172
NodeSet=nodegroup_{{ nodegroup.name }} Feature=nodegroup_{{ nodegroup.name }}
173173

174174
{% endfor %}

0 commit comments

Comments
 (0)