forked from ajdecon/ansible-pi-cluster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheadnode-slurm.yml
33 lines (31 loc) · 971 Bytes
/
headnode-slurm.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
---
- hosts: headnode
user: pi
sudo: yes
tasks:
- name: start fireball
action: fireball
- hosts: headnode
connection: fireball
tasks:
- name: install munge key
action: copy src=files/munge.key dest=/etc/munge/munge.key owner=munge group=munge mode=0600
notify:
- restart munge
- name: munge is started
action: service name=munge state=started
- name: touch slurm log file
action: command touch /var/log/slurm_jobacct.log
- name: slurm log file ownership
action: file dest=/var/log/slurm_jobacct.log owner=slurm state=file
- name: slurm is configured
action: template src=templates/slurm.conf.j2 dest=/etc/slurm-llnl/slurm.conf owner=slurm
notify:
- restart slurm
- name: slurm is started
action: service name=slurm-llnl state=started
handlers:
- name: restart munge
action: service name=munge state=restarted
- name: restart slurm
action: service name=slurm-llnl state=restarted