galaxyproject / ansible-slurm

Ansible role for installing and managing the Slurm Workload Manager
88 stars 47 forks source link

allowed potentially multiple SlurmctldHost as one might have backupcontrollers. #36

Open jakob1379 opened 1 year ago

jakob1379 commented 1 year ago

Consider the case where you want to have a backupcontroller. This is currently not possible as yaml/ansible is not happy with duplicate keys, so the previous key would simply be overwritten. Instead if we allow keys to be either string, or lists of strings that would expand to multiple instances of the key in the slurm.conf file we would have the desired effect e.g.

SlurmctldHost: [node-1,node-2]

would expand to

SlurmctldHost=node-1
SlurmctldHost=node-2

While

SlurmctldHost: node-1

would expand to

SlurmctldHost=node-1