Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make munge daemon start depend on cloud-init final finishing #145

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
3 changes: 2 additions & 1 deletion meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ galaxy_info:
min_ansible_version: 2.5.0
platforms:
- name: EL
versions:
release:
- 7
- 8
galaxy_tags:
- openhpc
- slurm
Expand Down
2 changes: 1 addition & 1 deletion tasks/drain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
register: drained_nodes
until: "inventory_hostname in drained_nodes.stdout_lines"
delay: "{{ openhpc_retry_delay }}"
retries: "{{ (openhpc_drain_timeout/openhpc_retry_delay) | int }}"
retries: "{{ (openhpc_drain_timeout / openhpc_retry_delay) | int }}"
changed_when: false
19 changes: 19 additions & 0 deletions tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,25 @@
name: "{{ openhpc_slurm_pkglist | reject('eq', '') }}"
when: openhpc_slurm_pkglist | default(false, true)

- name: Create drop-in directory for munge service
ansible.builtin.file:
path: /etc/systemd/system/munge.service.d
state: directory
owner: root
group: root
mode: 0644

- name: Delay munge start till after cloud-init
# in case mungekey is injected by cloud-init
copy:
dest: /etc/systemd/system/munge.service.d/slurmapp.conf
content: |
[Unit]
After=cloud-final.service
owner: root
group: root
mode: 0644

- name: Install packages from openhpc_packages variable
yum:
name: "{{ openhpc_packages }}"
Expand Down
2 changes: 1 addition & 1 deletion tasks/resume.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
register: resumed_nodes
until: "inventory_hostname in resumed_nodes.stdout_lines"
delay: "{{ openhpc_retry_delay }}"
retries: "{{ (openhpc_resume_timeout/openhpc_retry_delay) | int }}"
retries: "{{ (openhpc_resume_timeout / openhpc_retry_delay) | int }}"
changed_when: false
2 changes: 1 addition & 1 deletion tasks/runtime.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@
enabled: "{{ openhpc_slurm_service_enabled | bool }}"
state: "{{ 'started' if openhpc_slurm_service_started | bool else 'stopped' }}"

- name: flush handler
- name: Flush handler
meta: flush_handlers # as then subsequent "ensure" is a no-op if slurm services bounced

- name: Ensure slurmdbd is started and running
Expand Down