File tree Expand file tree Collapse file tree 5 files changed +8
-4
lines changed Expand file tree Collapse file tree 5 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -143,6 +143,9 @@ required to due to a a Slurm major version upgrade and carry it out if so.
143143Slurm versions before 24.11 do not support this check and so no upgrade will
144144occur. The following variables control behaviour during this upgrade:
145145
146+ ` openhpc_slurm_accounting_storage_client_package ` : Optional. String giving the
147+ name of the database client package to install, e.g. ` mariadb ` . Default ` mysql ` .
148+
146149` openhpc_slurm_accounting_storage_backup_cmd ` : Optional. String (possibly
147150multi-line) giving a command for ` ansible.builtin.shell ` to run a backup of the
148151Slurm database before performing the databse upgrade. Default is the empty
Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ openhpc_slurm_partitions: []
88openhpc_cluster_name :
99openhpc_packages :
1010 - slurm-libpmi-ohpc
11- - mysql # actually from rocky repos
1211openhpc_resume_timeout : 300
1312openhpc_retry_delay : 10
1413openhpc_job_maxtime : ' 60-0' # quote this to avoid ansible converting some formats to seconds, which is interpreted as minutes by Slurm
@@ -108,3 +107,4 @@ openhpc_slurm_accounting_storage_service: ''
108107openhpc_slurm_accounting_storage_backup_cmd : ' '
109108openhpc_slurm_accounting_storage_backup_host : " {{ openhpc_slurm_accounting_storage_host }}"
110109openhpc_slurm_accounting_storage_backup_become : true
110+ openhpc_slurm_accounting_storage_client_package : mysql
Original file line number Diff line number Diff line change 1515 openhpc_slurm_partitions :
1616 - name : " compute"
1717 openhpc_cluster_name : testohpc
18+ openhpc_slurm_accounting_storage_client_package : mariadb
1819 tasks :
1920 - name : " Include ansible-role-openhpc"
2021 include_role :
Original file line number Diff line number Diff line change 4949 install_weak_deps : false # avoids getting recommended packages
5050 when : openhpc_slurm_pkglist | default(false, true)
5151
52- - name : Install packages from openhpc_packages variable
52+ - name : Install other packages
5353 yum :
54- name : " {{ openhpc_packages }}"
54+ name : " {{ openhpc_packages + [openhpc_slurm_accounting_storage_client_package] }}"
5555
5656...
Original file line number Diff line number Diff line change 77 login_db : " {{ openhpc_slurmdbd_mysql_database }}"
88 login_user : " {{ openhpc_slurmdbd_mysql_username }}"
99 login_password : " {{ openhpc_slurmdbd_mysql_password }}"
10- # login_host:
10+ login_host : " {{ openhpc_slurm_accounting_storage_host }} "
1111 query : SHOW TABLES
1212 register : _openhpc_slurmdb_tables
1313
You can’t perform that action at this time.
0 commit comments