Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ package in the image.

`openhpc_login_only_nodes`: Optional. If using "configless" mode specify the name of an ansible group containing nodes which are login-only nodes (i.e. not also control nodes), if required. These nodes will run `slurmd` to contact the control node for config.

`openhpc_module_system_install`: Optional, default true. Whether or not to install an environment module system. If true, lmod will be installed. If false, You can either supply your own module system or go without one.

### slurm.conf

`openhpc_slurm_partitions`: list of one or more slurm partitions. Each partition may contain the following values:
Expand Down
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,4 @@ ohpc_release_repos:
openhpc_slurm_configless: false
openhpc_munge_key: ''
openhpc_login_only_nodes: ''
openhpc_module_system_install: true
4 changes: 2 additions & 2 deletions tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@
set_fact:
openhpc_slurm_pkglist: "{{ openhpc_slurm_pkglist | default([]) + item.value }}"
loop: "{{ ohpc_slurm_packages | dict2items }}"
when: "openhpc_enable.get(item.key, false)"
when: openhpc_enable.get(item.key, false)

- name: Install required slurm packages
yum:
name: "{{ openhpc_slurm_pkglist }}"
name: "{{ openhpc_slurm_pkglist | reject('eq', '') }}"
when: openhpc_slurm_pkglist | default(false, true)

- name: Install packages from openhpc_packages variable
Expand Down
2 changes: 1 addition & 1 deletion vars/ohpc-1.3
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ ohpc_slurm_packages:
- "munge-ohpc"
- "slurm-slurmd-ohpc"
- "slurm-example-configs-ohpc"
- "lmod-ohpc"
- "{{ 'lmod-ohpc' if openhpc_module_system_install else '' }}"
database:
- "slurm-slurmdbd-ohpc"
...
2 changes: 1 addition & 1 deletion vars/ohpc-2
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ ohpc_slurm_packages:
- "munge"
- "slurm-slurmd-ohpc"
- "slurm-example-configs-ohpc"
- "lmod-ohpc"
- "{{ 'lmod-ohpc' if openhpc_module_system_install else '' }}"
database:
- "slurm-slurmdbd-ohpc"
...