Skip to content
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
6 changes: 4 additions & 2 deletions 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 All @@ -14,7 +14,9 @@ mpi_packages:
google:
- mpich
- openmpi
aws: []
aws:
- mpich
- openmpi

monitoring_role: client

Expand Down
7 changes: 4 additions & 3 deletions 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 All @@ -15,7 +15,6 @@ slurm_elastic:

install_packages:
- xorg-x11-xauth
- openmpi-devel
- python3-devel
- "@Development Tools"
- vim
Expand All @@ -27,7 +26,9 @@ mpi_packages:
google:
- openmpi-devel
- mpich-devel
aws: []
aws:
- openmpi-devel
- mpich-devel

monitoring_role: master
grafana_admin_password: "{{ lookup('password', '/tmp/grafanapasswordfile chars=ascii_letters,digits,hexdigits') }}"
Expand Down
4 changes: 2 additions & 2 deletions roles/slurm/molecule/compute/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ provisioner:
slurm_role: compute
slurm_packages:
- slurmd
- libpmi
slurm_version: 20.02
- pmi
slurm_version: 20.11
slurm_cluster_name: cluster
slurm_control_machine: mgmt
filesystem_mount_point: /shared
Expand Down
4 changes: 2 additions & 2 deletions roles/slurm/molecule/mgmt/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ provisioner:
slurm_packages:
- slurmctld
- slurmdbd
- libpmi
slurm_version: 20.02
- pmi
slurm_version: 20.11
slurm_cluster_name: cluster
slurm_control_machine: mgmt
filesystem_mount_point: /shared
Expand Down
10 changes: 1 addition & 9 deletions roles/slurm/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,6 @@
enabled: yes
state: started

- name: Add Slurm repository
yum_repository:
name: slurm
description: Slurm
baseurl: https://download.opensuse.org/repositories/home:/Milliams:/citc/EPEL_8_CentOS/
gpgcheck: yes
gpgkey: https://download.opensuse.org/repositories/home:/Milliams:/citc/EPEL_8_CentOS/repodata/repomd.xml.key

- name: create slurm group
group:
name: slurm
Expand Down Expand Up @@ -143,7 +135,7 @@
dest: /etc/slurm/slurmdbd.conf
owner: slurm
group: slurm
mode: 0400
mode: 0600
when: slurm_role == "mgmt"
notify:
- restart slurmdbd
Expand Down