@@ -51,31 +51,36 @@ openhpc_state_save_location: "{{ appliances_state_dir + '/slurmctld' if applianc
51
51
# NB: override in environments/site/inventory/group_vars/all/openhpc.yml, not here:
52
52
openhpc_config_extra : {}
53
53
54
- # default additional slurm.conf parameters for the appliance:
54
+ # additional default slurm.conf parameters for the appliance:
55
55
openhpc_config_default :
56
56
TaskPlugin : task/cgroup,task/affinity
57
57
ReturnToService : 2 # workaround for templating bug TODO: Remove once on stackhpc.openhpc v1.2.0
58
- TopologyPlugin : " topology/{{ 'tree' if (topology_nodes | length) > 0 else 'flat' }}"
59
58
60
- # default additional slurm.conf parameters when "rebuild" enabled:
59
+ # additional default slurm.conf parameters when "rebuild" enabled:
61
60
openhpc_config_rebuild :
62
61
RebootProgram : /opt/slurm-tools/bin/slurm-openstack-rebuild
63
62
SlurmctldParameters :
64
63
- reboot_from_controller
65
64
ResumeTimeout : 300
66
65
67
- # default additional slurm.conf parameters when "nhc" enabled:
66
+ # additional default slurm.conf parameters when "nhc" enabled:
68
67
openhpc_config_nhc :
69
68
HealthCheckProgram : /usr/sbin/nhc
70
69
HealthCheckInterval : 300
71
70
HealthCheckNodeState : NONDRAINED_IDLE
72
71
72
+ # additional default slurm.conf parameters when "topology" enabled:
73
+ openhpc_config_topology :
74
+ TopologyPlugin : topology/tree
75
+
73
76
# indirection to allow automatic construction of slurm.conf parameters:
74
77
openhpc_config_groups :
75
78
- enabled : " {{ groups['rebuild'] | length > 0 }}"
76
79
config : " {{ openhpc_config_rebuild }}"
77
80
- enabled : " {{ groups['nhc'] | length > 0 }}"
78
81
config : " {{ openhpc_config_nhc }}"
82
+ - enabled : " {{ groups['topology'] | length > 0 }}"
83
+ config : " {{ openhpc_config_topology }}"
79
84
- enabled : true
80
85
config : " {{ openhpc_config_extra }}"
81
86
0 commit comments