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

Slurm: upgrade from 20.02 to 20.11 #108

Open
wants to merge 1 commit into
base: 6
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
2 changes: 1 addition & 1 deletion group_vars/all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ mgmt_hostname: "{{ ansible_local.citc.mgmt_hostname }}"
users: []

# From https://www.schedmd.com/downloads.php
slurm_version: 20.02
slurm_version: 20.11

slurm_cluster_name: cluster
slurm_control_machine: "{{ mgmt_hostname }}"
Expand Down
2 changes: 1 addition & 1 deletion group_vars/compute.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
slurm_packages:
- slurmd
- libpmi
- pmi

slurm_role: compute

Expand Down
2 changes: 1 addition & 1 deletion group_vars/management.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ slurm_accounting_db_password: "{{ lookup('password', '/tmp/slurmpasswordfile cha
slurm_packages:
- slurmctld
- slurmdbd
- libpmi
- pmi

slurm_role: mgmt

Expand Down
2 changes: 1 addition & 1 deletion roles/slurm/molecule/compute/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ provisioner:
slurm_packages:
- slurmd
- libpmi
slurm_version: 20.02
slurm_version: 20.11
slurm_cluster_name: cluster
slurm_control_machine: mgmt
filesystem_mount_point: /shared
Expand Down
2 changes: 1 addition & 1 deletion roles/slurm/molecule/mgmt/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ provisioner:
- slurmctld
- slurmdbd
- libpmi
slurm_version: 20.02
slurm_version: 20.11
slurm_cluster_name: cluster
slurm_control_machine: mgmt
filesystem_mount_point: /shared
Expand Down
17 changes: 16 additions & 1 deletion roles/slurm/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
---
- name: check if powertools repo is already enabled
shell: |
set -o pipefail
dnf -q repolist --enabled powertools | grep -i powertools # noqa 301
changed_when: false
register: powertools
failed_when: powertools.rc == 2
when: ansible_local.citc.csp != "oracle"

- name: enable powertools module
command: dnf config-manager --set-enabled powertools
when:
- ansible_local.citc.csp != "oracle"
- powertools.rc != 0

- name: install munge
yum:
name: munge
Expand Down Expand Up @@ -147,7 +162,7 @@
dest: /etc/slurm/slurmdbd.conf
owner: slurm
group: slurm
mode: 0400
mode: 0600
when: slurm_role == "mgmt"
notify:
- restart slurmdbd
Expand Down