@@ -4,30 +4,57 @@ openhpc_slurm_service_started: "{{ openhpc_slurm_service_enabled }}"
44openhpc_slurm_service :
55openhpc_slurm_control_host : " {{ inventory_hostname }}"
66# openhpc_slurm_control_host_address:
7- openhpc_slurm_partitions : []
7+ openhpc_partitions : " {{ openhpc_nodegroups }}"
8+ openhpc_nodegroups : []
89openhpc_cluster_name :
910openhpc_packages :
1011 - slurm-libpmi-ohpc
1112openhpc_resume_timeout : 300
1213openhpc_retry_delay : 10
1314openhpc_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 : {}
1551openhpc_gres_template : gres.conf.j2
1652openhpc_cgroup_template : cgroup.conf.j2
17- openhpc_slurm_configless : " {{ 'enable_configless' in openhpc_config.get('SlurmctldParameters', []) }}"
1853
1954openhpc_state_save_location : /var/spool/slurm
2055openhpc_slurmd_spool_dir : /var/spool/slurm
2156openhpc_slurm_conf_path : /etc/slurm/slurm.conf
2257openhpc_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
3158
3259# Accounting
3360openhpc_slurm_accounting_storage_host : " {{ openhpc_slurmdbd_host }}"
@@ -113,12 +140,16 @@ ohpc_default_extra_repos:
113140 gpgcheck : true
114141 gpgkey : " https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-8"
115142
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 :
120144openhpc_login_only_nodes : ' '
121145openhpc_module_system_install : true # only works for install-ohpc.yml/main.yml
122146
123147# Auto detection
124148openhpc_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