Skip to content

Commit 6038a0c

Browse files
committed
rename openhpc_partitions.groups -> openhpc_partitions.nodegroups for clarity
1 parent 175a1c0 commit 6038a0c

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ unique set of homogenous nodes:
8383
`openhpc_partitions`: Optional. List of mappings, each defining a
8484
partition. Each partition mapping may contain:
8585
* `name`: Required. Name of partition.
86-
* `groups`: Optional. List of node group names. If omitted, the node group
86+
* `nodegroups`: Optional. List of node group names. If omitted, the node group
8787
with the same name as the partition is used.
8888
* `default`: Optional. A boolean flag for whether this partion is the default. Valid settings are `YES` and `NO`.
8989
* `maxtime`: Optional. A partition-specific time limit overriding `openhpc_job_maxtime`.
@@ -258,13 +258,13 @@ job runtime for "production" jobs:
258258
```yaml
259259
openhpc_partitions:
260260
- name: test
261-
groups:
261+
nodegroups:
262262
- general
263263
- gpu
264264
maxtime: '1:0:0' # 1 hour
265265
default: 'YES'
266266
- name: general
267-
groups:
267+
nodegroups:
268268
- general
269269
- large
270270
- gpu

molecule/test3/converge.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
- name: grp2
1313
openhpc_partitions:
1414
- name: compute
15-
groups:
15+
nodegroups:
1616
- grp1
1717
- grp2
1818
openhpc_cluster_name: testohpc

templates/slurm.conf.j2

+1-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ PartitionName={{partition.name}} {{ '' -}}
182182
Default={{ partition.get('default', 'YES') }} {{ '' -}}
183183
MaxTime={{ partition.get('maxtime', openhpc_job_maxtime) }} {{ '' -}}
184184
State=UP {{ '' -}}
185-
Nodes={{ partition.get('groups', [partition.name]) | map('regex_replace', '^', 'nodegroup_') | join(',') }} {{ '' -}}
185+
Nodes={{ partition.get('nodegroups', [partition.name]) | map('regex_replace', '^', 'nodegroup_') | join(',') }} {{ '' -}}
186186
{{ partition.partition_params | default({}) | dict2parameters }}
187187
{% endfor %}{# openhpc_partitions #}
188188

0 commit comments

Comments
 (0)