Skip to content

Commit 1401a3e

Browse files
Setup DNF config for DOCA
1 parent 1919f22 commit 1401a3e

File tree

1 file changed

+28
-13
lines changed

1 file changed

+28
-13
lines changed

etc/kayobe/dnf.yml

Lines changed: 28 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,23 @@ dnf_custom_repos: "{{ stackhpc_dnf_repos if stackhpc_repos_enabled | bool else [
4747
# To use these repos, set stackhpc_repos_enabled to true.
4848
# This is done by default for hosts in the overcloud group via a group_vars
4949
# file.
50-
stackhpc_dnf_repos: "{{ dnf_custom_repos_el9 | combine(dnf_custom_repos_rocky_9) | combine(dnf_custom_repos_elrepo_9 if dnf_install_elrepo_9 | bool else {}) | combine(dnf_custom_repos_ofed if dnf_install_rocky_ofed | bool else {}) }}"
51-
52-
# OFED repository for Rocky 9
53-
dnf_custom_repos_ofed:
54-
ofed:
55-
baseurl: "{{ stackhpc_repo_rocky_ofed_url }}"
56-
description: "Mellanox Technologies doca_ofed {{ stackhpc_pulp_doca_ofed_version }} Rocky 9.{{ stackhpc_pulp_repo_rocky_9_minor_version }}"
57-
enabled: "{{ dnf_enable_rocky_ofed | bool }}"
58-
file: ofed
50+
stackhpc_dnf_repos: "{{ dnf_custom_repos_el9 | combine(dnf_custom_repos_rocky_9) | combine(dnf_custom_repos_elrepo_9 if dnf_install_elrepo_9 | bool else {}) | combine(dnf_custom_repos_ofed if dnf_install_rocky_doca | bool else {}) }}"
51+
52+
# DOCA repositories
53+
dnf_custom_repos_doca:
54+
doca:
55+
baseurl: "{{ stackhpc_repo_rocky_doca_url }}"
56+
description: "DOCA Online Repo {{ stackhpc_pulp_doca_version }}"
57+
enabled: "{{ dnf_enable_doca | bool }}"
58+
file: doca
59+
gpgcheck: no
60+
username: "{{ stackhpc_repo_mirror_username | default(omit, true) }}"
61+
password: "{{ stackhpc_repo_mirror_password | default(omit, true) }}"
62+
doca-modules:
63+
baseurl: "{{ stackhpc_repo_rocky_doca_modules_url }}"
64+
description: "DOCA Modules Repo {{ stackhpc_pulp_doca_version }}"
65+
enabled: "{{ dnf_enable_doca | bool and dnf_enable_doca_modules | bool }}"
66+
file: doca-modules
5967
gpgcheck: no
6068
username: "{{ stackhpc_repo_mirror_username | default(omit, true) }}"
6169
password: "{{ stackhpc_repo_mirror_password | default(omit, true) }}"
@@ -143,8 +151,11 @@ dnf_enable_epel: "{{ dnf_install_epel | bool }}"
143151
# Whether to enable the ELRepo repository. This affects RedHat-based, 9.x release systems only.
144152
dnf_enable_elrepo_9: "{{ dnf_install_elrepo_9 | bool }}"
145153

146-
# Whether to enable OFED repositories. This affects RedHat-based systems only.
147-
dnf_enable_rocky_ofed: "{{ dnf_install_rocky_ofed | bool }}"
154+
# Whether to enable DOCA repositories. This affects RedHat-based systems only.
155+
dnf_enable_doca: "{{ dnf_install_doca | bool }}"
156+
157+
# Whether to enable the DOCA kernel module repository. This affects RedHat-based systems only.
158+
dnf_enable_doca_modules: "{{ dnf_install_doca_modules | bool }}"
148159

149160
# URL of EPEL GPG keys.
150161
dnf_epel_9_gpg_key_url: "https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-9"
@@ -166,9 +177,13 @@ dnf_enable_docker: true
166177
#URL of docker repo GPG key
167178
dnf_docker_gpg_key_url: "https://download.docker.com/linux/centos/gpg"
168179

169-
# Whether to create a repo file for OFED. This affects RedHat-based
180+
# Whether to create a repo file for DOCA. This affects RedHat-based
181+
# systems only.
182+
dnf_install_doca: false
183+
184+
# Whether to create a repo file for DOCA kernel modules. This affects RedHat-based
170185
# systems only.
171-
dnf_install_rocky_ofed: false
186+
dnf_install_doca_modules: false
172187

173188
###############################################################################
174189
# DNF Automatic configuration.

0 commit comments

Comments
 (0)