ansible-role-openhpc icon indicating copy to clipboard operation
ansible-role-openhpc copied to clipboard

slurm.conf contains malformed (trimmed) templates

Open tom91136 opened this issue 1 year ago • 0 comments

I saw a few instances where the templated config end up looking like:

# many more normal lines
SlurmctldHost=mgmt.staging.local#SlurmctldHost=
# many more normal lines
SlurmctldParameters=enable_configlessReturnToService=2

Which corresponds to trimmed blocks:

https://github.com/stackhpc/ansible-role-openhpc/blob/a59913004982bd6e6e09c519d66b6503018e6553/templates/slurm.conf.j2#L186

This may have occurred for other templates as well, but I'll have to check. The documentation seems to suggest that this trimming of the template is the default but behaviour can be changed: https://github.com/ansible/ansible/issues/22531

tom91136 avatar Jun 16 '24 18:06 tom91136