Skip to content

Commit 483b0ac

Browse files
committed
add openhpc_directories
1 parent c8c9da2 commit 483b0ac

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ Note slurm's ["configless" mode](https://slurm.schedmd.com/configless_slurm.html
4848

4949
`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.
5050

51+
`openhpc_extra_directories`: Optional list of dicts describing additional directories or files to create. By default, the directory for `openhpc_state_save_location` is created. Each dict can take keys `path`, `owner`, `group`, `mode` and `state` (default: directory) as for [ansible.builtin.file](https://docs.ansible.com/ansible/latest/collections/ansible/builtin/file_module.html). As it is run with sudo it is useful to create directories/files for the the slurm user in locations that that user does not have write access to, e.g. `/var/log/`.
52+
5153
### slurm.conf
5254

5355
`openhpc_cluster_name`: Required, name of the cluster.

tasks/runtime.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
owner: "{{ item.owner }}"
88
group: "{{ item.group }}"
99
mode: "{{ item.mode }}"
10-
state: directory
10+
state: "{{ item.state | default('directory') }}"
1111
loop: "{{ openhpc_directories }}"
1212
when: inventory_hostname == openhpc_slurm_control_host
1313

0 commit comments

Comments
 (0)