WIP: slurm

This commit is contained in:
2021-04-24 00:13:57 +02:00
parent af71f7e983
commit 53502213bc
8 changed files with 935 additions and 1 deletions

View File

@@ -0,0 +1,36 @@
- name: 'install slurm tools on host'
yum:
name: [ slurm, slurm-doc ]
state: present
- include_tasks: dockerimage.yml
loop:
- slurmctld
- slurmd
- name: generate munge key
shell:
cmd: dd if=/dev/urandom bs=1 count=1024 >/etc/munge/munge.key
creates: /etc/munge/munge.key
- name: set permissions on munge key
file:
path: /etc/munge/munge.key
owner: munge
group: munge
mode: u=rw,g=,o=
- file:
path: /container/volumes/munge
state: directory
owner: munge
group: munge
mode: u=rwx,g=,o=
- name: copy munge key to docker containers
copy:
remote_src: True
force: true
mode: preserve
src: /etc/munge/munge.key
dest: /container/volumes/munge/munge.key