Skip to content

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

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
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
16 changes: 16 additions & 0 deletions tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,22 @@
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

- name: Install packages from openhpc_packages variable
yum:
name: "{{ openhpc_packages }}"
Expand Down