stackhpc / ansible-role-openhpc

Ansible role for OpenHPC
Apache License 2.0
47 stars 16 forks source link

slurm.conf contains malformed (trimmed) templates #170

Open tom91136 opened 3 months ago

tom91136 commented 3 months ago

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