2019-01-29 22:26:21 -04:00
|
|
|
##
|
|
|
|
## This file is maintained by Ansible - ALL MODIFICATIONS WILL BE REVERTED
|
|
|
|
##
|
|
|
|
|
|
|
|
{% if 'ControlMachine' not in __slurm_config_merged and 'SlurmctldHost' not in __slurm_config_merged %}
|
|
|
|
# Default, define SlurmctldHost or ControlMachine to override
|
|
|
|
ControlMachine=localhost
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
# Configuration options
|
|
|
|
{% for key in __slurm_config_merged | sort %}
|
2019-01-29 23:35:28 -04:00
|
|
|
{% if __slurm_config_merged[key] %}
|
2019-01-29 22:26:21 -04:00
|
|
|
{{ key }}={{ __slurm_config_merged[key] }}
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
# Nodes
|
|
|
|
{% for i in slurm_nodes %}
|
2019-01-29 23:35:28 -04:00
|
|
|
NodeName={{ i.name }}{% for k in i | sort %} {{ k }}={{ i[k] }}{% endfor %}
|
|
|
|
{% else %}
|
|
|
|
NodeName=localhost State=UNKNOWN
|
2019-01-29 22:26:21 -04:00
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
|
|
|
|
# Partitions
|
|
|
|
{% for i in slurm_partitions %}
|
2019-01-29 23:35:28 -04:00
|
|
|
PartitionName={{ i.name }}{% for k in i | sort %} {{ k }}={{ i[k] }}{% endfor %}
|
|
|
|
{% else %}
|
|
|
|
PartitionName=debug Default=YES Nodes={{ slurm_nodes[0] | default('localhost') }} State=UP
|
2019-01-29 22:26:21 -04:00
|
|
|
{% endfor %}
|