Installation and configuration of Slurm with Ansible
Go to file
Colin Vandenhof 559ce7e054 restart on munge key change + buster support 2021-06-18 02:26:00 -03:00
defaults handle ubuntus new location! 🤬 2021-01-12 16:10:50 +01:00
handlers restart on munge key change + buster support 2021-06-18 02:26:00 -03:00
meta restart on munge key change + buster support 2021-06-18 02:26:00 -03:00
tasks restart on munge key change + buster support 2021-06-18 02:26:00 -03:00
templates Don't set a pid file on EL, and use `omit` instead of `None` as the 2019-03-27 16:24:43 -04:00
.gitignore restart on munge key change + buster support 2021-06-18 02:26:00 -03:00
README.md Make README trueish 2019-01-30 00:08:53 -05:00

README.md

Slurm

Install and configure Slurm

Role Variables

All variables are optional. If nothing is set, the role will install the Slurm client programs, munge, and create a slurm.conf with a single localhost node and debug partition. See the defaults and example playbook for examples.

For the various roles a slurm node can play, you can either set group names, or add values to a list, slurm_roles.

  • group slurmservers or slurm_roles: ['controller']
  • group slurmexechosts or slurm_roles: ['exec']
  • group slurmdbdservers or slurm_roles: ['dbd']

General config options for slurm.conf go in slurm_config, a hash. Keys are slurm config option names.

Partitions and nodes go in slurm_partitions and slurm_nodes, lists of hashes. The only required key in the hash is name, which becomes the PartitionName or NodeName for that line. All other keys/values are placed on to the line of that partition or node.

Set slurm_upgrade true to upgrade.

You can use slurm_user (a hash) and slurm_create_user (a bool) to pre-create a Slurm user (so that uids match). See

Dependencies

None.

Example Playbook

- name: Slurm all in One
  hosts: all
  vars:
    slurm_roles: ['controller', 'exec', 'dbd']
  roles:
    - galaxyproject.slurm

License

MIT

Author Information

View contributors on GitHub