Master configuration
Install the necessary packages for slurmctld
and start the corresponding systemd service:
---
- name: Install slurm server
ansible.builtin.yum:
name:
- slurm-slurmctld
- s-nail
state: latest
update_cache: true
- name: Create /var/spool/slurmctld folder
ansible.builtin.file:
path: /var/spool/slurmctld
state: directory
owner: slurm
group: slurm
mode: "0755"
- name: Check /var/log/slurmctld.log exists
ansible.builtin.file:
path: /var/log/slurmctld.log
state: touch
owner: slurm
group: slurm
access_time: preserve
- name: Start slurmctld service
ansible.builtin.service:
name: slurmctld
state: restarted
enabled: true
At this point you should be able to run sinfo
to check the configuration of the “cluster”.