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

Generate a munge key when slurm_munge_key is not defined #24

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
9 changes: 9 additions & 0 deletions tasks/munge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@
mode: 0700
state: directory

- name: Generate a munge key if none specified
command: create-munge-key
args:
creates: /etc/munge/munge.key
when: slurm_munge_key is not defined
become: yes
notify:
- restart munge

- name: Install munge key
copy:
src: "{{ slurm_munge_key }}"
Expand Down