Skip to content

Commit

Permalink
Merge pull request #1 from roumano/buster
Browse files Browse the repository at this point in the history
Debian Buster is now supported
  • Loading branch information
roumano authored Mar 8, 2021
2 parents a3104b0 + b6e6339 commit a560fc2
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
3 changes: 3 additions & 0 deletions handlers/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
---
- name: systemd reload
systemd:
daemon_reload: yes

- name: reload slurmd
service:
Expand Down
1 change: 1 addition & 0 deletions meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ galaxy_info:
versions:
- jessie
- stretch
- buster
- name: Ubuntu
versions:
- xenial
Expand Down
21 changes: 20 additions & 1 deletion tasks/slurmdbd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,13 @@
- name: Install slurmdbd.conf
template:
src: generic.conf.j2
dest: "{{ slurm_config_dir }}/slurmdbd.conf"
dest: "{{ slurm_config_dir }}/{{ item.name }}"
owner: "{{ __slurm_user_name }}"
group: root
mode: 0400
with_items:
- name: slurmdbd.conf
config: __slurmdbd_config_merged
notify:
- reload slurmdbd

Expand All @@ -23,3 +26,19 @@
mode: 0755
state: directory
when: slurm_create_dirs and __slurmdbd_config_merged.LogFile

- name: Directory of Pidfile must exist
file:
state: directory
path: "{{ __slurmdbd_config_merged.PidFile | dirname }}"
when: __slurmdbd_config_merged.PidFile is defined

- name: Service slurmdbd , option PIDFile
lineinfile:
path: /lib/systemd/system/slurmdbd.service
regexp: 'PIDFile'
line: "PIDFile={{ __slurmdbd_config_merged.PidFile }}"
when: __slurmdbd_config_merged.PidFile is defined
notify:
- systemd reload
- reload slurmdbd

0 comments on commit a560fc2

Please sign in to comment.