@@ -4,30 +4,57 @@ openhpc_slurm_service_started: "{{ openhpc_slurm_service_enabled }}"
4
4
openhpc_slurm_service :
5
5
openhpc_slurm_control_host : " {{ inventory_hostname }}"
6
6
# openhpc_slurm_control_host_address:
7
- openhpc_slurm_partitions : []
7
+ openhpc_partitions : " {{ openhpc_nodegroups }}"
8
+ openhpc_nodegroups : []
8
9
openhpc_cluster_name :
9
10
openhpc_packages :
10
11
- slurm-libpmi-ohpc
11
12
openhpc_resume_timeout : 300
12
13
openhpc_retry_delay : 10
13
14
openhpc_job_maxtime : ' 60-0' # quote this to avoid ansible converting some formats to seconds, which is interpreted as minutes by Slurm
14
- openhpc_config : " {{ openhpc_extra_config | default({}) }}"
15
+ openhpc_default_config :
16
+ # This only defines values which are not Slurm defaults
17
+ SlurmctldHost : " {{ openhpc_slurm_control_host }}{% if openhpc_slurm_control_host_address is defined %}({{ openhpc_slurm_control_host_address }}){% endif %}"
18
+ ProctrackType : proctrack/linuxproc # TODO: really want cgroup but needs cgroup.conf and workaround for CI
19
+ SlurmdSpoolDir : /var/spool/slurm # NB: not OpenHPC default!
20
+ SlurmUser : slurm
21
+ StateSaveLocation : " {{ openhpc_state_save_location }}"
22
+ SlurmctldTimeout : 300
23
+ SchedulerType : sched/backfill
24
+ SelectType : select/cons_tres
25
+ SelectTypeParameters : CR_Core
26
+ PriorityWeightPartition : 1000
27
+ PreemptType : preempt/partition_prio
28
+ PreemptMode : SUSPEND,GANG
29
+ AccountingStoragePass : " {{ openhpc_slurm_accounting_storage_pass | default('omit') }}"
30
+ AccountingStorageHost : " {{ openhpc_slurm_accounting_storage_host }}"
31
+ AccountingStoragePort : " {{ openhpc_slurm_accounting_storage_port }}"
32
+ AccountingStorageType : " {{ openhpc_slurm_accounting_storage_type }}"
33
+ AccountingStorageUser : " {{ openhpc_slurm_accounting_storage_user }}"
34
+ JobCompLoc : " {{ openhpc_slurm_job_comp_loc }}"
35
+ JobCompType : " {{ openhpc_slurm_job_comp_type }}"
36
+ JobAcctGatherFrequency : " {{ openhpc_slurm_job_acct_gather_frequency }}"
37
+ JobAcctGatherType : " {{ openhpc_slurm_job_acct_gather_type }}"
38
+ SlurmctldSyslogDebug : info
39
+ SlurmdSyslogDebug : info
40
+ PropagateResourceLimitsExcept : MEMLOCK
41
+ Epilog : /etc/slurm/slurm.epilog.clean
42
+ ReturnToService : 2
43
+ openhpc_cgroup_default_config :
44
+ ConstrainCores : " yes"
45
+ ConstrainDevices : " yes"
46
+ ConstrainRAMSpace : " yes"
47
+ ConstrainSwapSpace : " yes"
48
+
49
+ openhpc_config : {}
50
+ openhpc_cgroup_config : {}
15
51
openhpc_gres_template : gres.conf.j2
16
52
openhpc_cgroup_template : cgroup.conf.j2
17
- openhpc_slurm_configless : " {{ 'enable_configless' in openhpc_config.get('SlurmctldParameters', []) }}"
18
53
19
54
openhpc_state_save_location : /var/spool/slurm
20
55
openhpc_slurmd_spool_dir : /var/spool/slurm
21
56
openhpc_slurm_conf_path : /etc/slurm/slurm.conf
22
57
openhpc_slurm_conf_template : slurm.conf.j2
23
- openhpc_config_files :
24
- - template :
25
- dest : " {{ openhpc_slurm_conf_path | dirname }}/gres.conf"
26
- src : " {{ openhpc_gres_template }}"
27
- mode : " 0600"
28
- owner : slurm
29
- group : slurm
30
- enable : control
31
58
32
59
# Accounting
33
60
openhpc_slurm_accounting_storage_host : " {{ openhpc_slurmdbd_host }}"
@@ -113,12 +140,16 @@ ohpc_default_extra_repos:
113
140
gpgcheck : true
114
141
gpgkey : " https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-8"
115
142
116
- # Concatenate extra repo definitions here
117
- ohpc_extra_repos : " {{ ohpc_default_extra_repos[ansible_distribution_major_version] + openhpc_extra_repos }}"
118
-
119
- openhpc_munge_key :
143
+ openhpc_munge_key_b64 :
120
144
openhpc_login_only_nodes : ' '
121
145
openhpc_module_system_install : true # only works for install-ohpc.yml/main.yml
122
146
123
147
# Auto detection
124
148
openhpc_ram_multiplier : 0.95
149
+
150
+ # Database upgrade
151
+ openhpc_slurm_accounting_storage_service : ' '
152
+ openhpc_slurm_accounting_storage_backup_cmd : ' '
153
+ openhpc_slurm_accounting_storage_backup_host : " {{ openhpc_slurm_accounting_storage_host }}"
154
+ openhpc_slurm_accounting_storage_backup_become : true
155
+ openhpc_slurm_accounting_storage_client_package : mysql
0 commit comments