indigo-dc.slurm
SLURM Cluster Role
This guide explains how to set up a SLURM cluster. The role is specifically designed for the INDIGO project.
Role Variables
Here are the variables you can use with this role, along with simple explanations:
SLURM Version to Install (for RH systems):
slurm_version: 16.05.8
Type of Node to Install:
slurm_type_of_node: front
(options: front or wn)SLURM Server Name:
slurm_server_name: slurmserver
SLURM Server IP Address:
slurm_server_ip: 127.0.0.1
Prefix for SLURM Working Nodes:
slurm_vnode_prefix: vnode-
Defining Working Nodes (WNs):
You can define only one of the following. If you define more than one, they will be prioritized in the order listed:List of WN Names:
slurm_wn_nodenames: []
List of WN IPs:
slurm_wn_ips: []
Number of WNs:
slurm_wn_num: -1
Number of CPUs for WNs:
slurm_wn_cpus: 1
Default User for SSH and SLURM Management:
slurm_user: slurm
slurm_uid: "1994"
Password for Munge Key Authentication:
slurm_password: hfe1q4ujaucsu913
Default User for Munge:
munge_user: munge
munge_uid: "1995"
Example Playbook
Here's an example of how to install a Torque/PBS cluster:
- hosts: server
roles:
- { role: 'indigo-dc.slurm', slurm_type_of_node: 'front', slurm_server_ip: '{{ansible_default_ipv4}}', slurm_wn_nodenames: "{{ groups['wns']|map('extract', hostvars, 'ansible_hostname')|list }}" }
- hosts: wns
roles:
- { role: 'indigo-dc.slurm', slurm_type_of_node: 'wn', slurm_server_ip: "{{hostvars['server']['ansible_default_ipv4']}}" }
License
This project is licensed under the Apache License v2.
Apache License
For more information on SLURM, visit: SLURM Documentation