4141# file: myrepo
4242# gpgkey: http://gpgkey
4343# gpgcheck: yes
44- dnf_custom_repos : " {{ stackhpc_dnf_repos if stackhpc_repos_enabled | bool else [] }}"
44+ dnf_custom_repos : " {{ stackhpc_dnf_repos[os_release] | default({}) if stackhpc_repos_enabled | bool else {} }}"
4545
4646# A dict of custom repositories that point to the local Pulp server.
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_doca if dnf_install_doca | bool else {}) }}"
50+ stackhpc_dnf_repos :
51+ " 9 " : " {{ 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_doca_rocky_9 if dnf_install_doca | bool else {}) }}"
52+ " 10 " : " {{ dnf_custom_repos_el10 | combine(dnf_custom_repos_rocky_10) | combine(dnf_custom_repos_elrepo_10 if dnf_install_elrepo_10 | bool else {}) | combine(dnf_custom_repos_doca_rocky_10 if dnf_install_doca | bool else {}) }}"
5153
5254# DOCA repositories
53- dnf_custom_repos_doca :
55+ dnf_custom_repos_doca_rocky_9 :
5456 doca :
5557 baseurl : " {{ stackhpc_repo_rhel9_doca_url }}"
5658 description : " DOCA Online Repo {{ stackhpc_pulp_doca_version }} - RHEL $releasever"
@@ -70,7 +72,28 @@ dnf_custom_repos_doca:
7072 username : " {{ stackhpc_repo_mirror_username | default(omit, true) }}"
7173 password : " {{ stackhpc_repo_mirror_password | default(omit, true) }}"
7274
73- # Custom repositories shared between all RHEL 9 derivatives.
75+ dnf_custom_repos_doca_rocky_10 :
76+ doca :
77+ baseurl : " {{ stackhpc_repo_rhel10_doca_url }}"
78+ description : " DOCA Online Repo {{ stackhpc_pulp_doca_version }} - RHEL $releasever"
79+ enabled : " {{ dnf_enable_doca | bool | default(false) }}"
80+ priority : -1
81+ file : doca
82+ gpgcheck : no
83+ username : " {{ stackhpc_repo_mirror_username | default(omit, true) }}"
84+ password : " {{ stackhpc_repo_mirror_password | default(omit, true) }}"
85+ # TODO(owenjones): update this once repo for Rocky 10 has been created in Pulp
86+ # doca-modules:
87+ # baseurl: "{{ stackhpc_repo_rhel9_doca_modules_url }}"
88+ # description: "OFED Kernel module repository for DOCA {{ stackhpc_pulp_doca_version }} - RHEL $releasever"
89+ # enabled: "{{ dnf_enable_doca_modules | bool | default(false) }}"
90+ # priority: -1
91+ # file: doca
92+ # gpgcheck: no
93+ # username: "{{ stackhpc_repo_mirror_username | default(omit, true) }}"
94+ # password: "{{ stackhpc_repo_mirror_password | default(omit, true) }}"
95+
96+ # Custom repositories shared between all RHEL 9/10 derivatives.
7497dnf_custom_repos_el9 :
7598 epel :
7699 baseurl : " {{ stackhpc_repo_epel_9_url }}"
@@ -91,94 +114,164 @@ dnf_custom_repos_el9:
91114 username : " {{ stackhpc_repo_mirror_username | default(omit, true) }}"
92115 password : " {{ stackhpc_repo_mirror_password | default(omit, true) }}"
93116
94- # ELRepo 9
117+ dnf_custom_repos_el10 :
118+ epel :
119+ baseurl : " {{ stackhpc_repo_epel_10_url }}"
120+ description : " Extra Packages for Enterprise Linux $releasever - $basearch"
121+ enabled : " {{ dnf_enable_epel | bool }}"
122+ file : epel
123+ gpgkey : " {{ dnf_epel_10_gpg_key_url }}"
124+ gpgcheck : yes
125+ username : " {{ stackhpc_repo_mirror_username | default(omit, true) }}"
126+ password : " {{ stackhpc_repo_mirror_password | default(omit, true) }}"
127+ docker :
128+ baseurl : " {{ stackhpc_repo_centos_stream_10_docker_url }}"
129+ description : " Package repository for installing docker"
130+ enabled : " {{ dnf_enable_docker | bool }}"
131+ file : docker
132+ gpgkey : " {{ dnf_docker_gpg_key_url }}"
133+ gpgcheck : yes
134+ username : " {{ stackhpc_repo_mirror_username | default(omit, true) }}"
135+ password : " {{ stackhpc_repo_mirror_password | default(omit, true) }}"
136+
137+ # ELRepo 9/10
95138dnf_custom_repos_elrepo_9 :
96139 elrepo :
97140 baseurl : " {{ stackhpc_repo_elrepo_9_url }}"
98141 description : " ELRepo.org Community Enterprise Linux Repository - el9"
99142 enabled : " {{ dnf_enable_elrepo_9 | bool }}"
100143 file : elrepo
101- gpgkey : https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
144+ gpgkey :
145+ - " {{ dnf_elrepo_gpg_key_url }}"
146+ - " {{ dnf_elrepo_gpg_v2_key_url }}"
147+ gpgcheck : yes
148+ username : " {{ stackhpc_repo_mirror_username | default(omit, true) }}"
149+ password : " {{ stackhpc_repo_mirror_password | default(omit, true) }}"
150+
151+ dnf_custom_repos_elrepo_10 :
152+ elrepo :
153+ baseurl : " {{ stackhpc_repo_elrepo_10_url }}"
154+ description : " ELRepo.org Community Enterprise Linux Repository - el10"
155+ enabled : " {{ dnf_enable_elrepo_10 | bool }}"
156+ file : elrepo
157+ gpgkey : " {{ dnf_elrepo_gpg_v2_key_url }}"
102158 gpgcheck : yes
103159 username : " {{ stackhpc_repo_mirror_username | default(omit, true) }}"
104160 password : " {{ stackhpc_repo_mirror_password | default(omit, true) }}"
105161
106- # Rocky 9 specific repositories
162+ # Rocky 9/10 specific repositories
107163dnf_custom_repos_rocky_9 :
108164 appstream :
109165 baseurl : " {{ stackhpc_repo_rocky_9_appstream_url }}"
110166 description : " Rocky Linux $releasever - AppStream"
111167 file : rocky
112- gpgkey : " {{ rocky_9_gpg_key }}"
168+ gpgkey : " {{ dnf_rocky_9_gpg_key_url }}"
113169 gpgcheck : yes
114170 username : " {{ stackhpc_repo_mirror_username | default(omit, true) }}"
115171 password : " {{ stackhpc_repo_mirror_password | default(omit, true) }}"
116172 baseos :
117173 baseurl : " {{ stackhpc_repo_rocky_9_baseos_url }}"
118174 description : " Rocky Linux $releasever - BaseOS"
119175 file : rocky
120- gpgkey : " {{ rocky_9_gpg_key }}"
176+ gpgkey : " {{ dnf_rocky_9_gpg_key_url }}"
121177 gpgcheck : yes
122178 username : " {{ stackhpc_repo_mirror_username | default(omit, true) }}"
123179 password : " {{ stackhpc_repo_mirror_password | default(omit, true) }}"
124180 crb :
125181 baseurl : " {{ stackhpc_repo_rocky_9_crb_url }}"
126182 description : " Rocky Linux $releasever - CRB"
127183 file : rocky
128- gpgkey : " {{ rocky_9_gpg_key }}"
184+ gpgkey : " {{ dnf_rocky_9_gpg_key_url }}"
129185 gpgcheck : yes
130186 username : " {{ stackhpc_repo_mirror_username | default(omit, true) }}"
131187 password : " {{ stackhpc_repo_mirror_password | default(omit, true) }}"
132188 extras :
133189 baseurl : " {{ stackhpc_repo_rocky_9_extras_url }}"
134190 description : " Rocky Linux $releasever - Extras"
135191 file : rocky-extras
136- gpgkey : " {{ rocky_9_gpg_key }}"
192+ gpgkey : " {{ dnf_rocky_9_gpg_key_url }}"
137193 gpgcheck : yes
138194 username : " {{ stackhpc_repo_mirror_username | default(omit, true) }}"
139195 password : " {{ stackhpc_repo_mirror_password | default(omit, true) }}"
140196 security-common :
141197 baseurl : " {{ stackhpc_repo_rocky_9_sig_security_common_url }}"
142198 description : " Rocky Linux $releasever - SIG Security Common"
143199 file : Rocky-SIG-Security-Common
144- gpgkey : " {{ rocky_9_sig_security_gpg_key }}"
200+ gpgkey : " {{ dnf_rocky_9_sig_security_gpg_key_url }}"
145201 gpgcheck : yes
146202 includepkgs : " openssh*"
147203 username : " {{ stackhpc_repo_mirror_username | default(omit, true) }}"
148204 password : " {{ stackhpc_repo_mirror_password | default(omit, true) }}"
149205
206+ dnf_custom_repos_rocky_10 :
207+ appstream :
208+ baseurl : " {{ stackhpc_repo_rocky_10_appstream_url }}"
209+ description : " Rocky Linux $releasever - AppStream"
210+ file : rocky
211+ gpgkey : " {{ dnf_rocky_10_gpg_key_url }}"
212+ gpgcheck : yes
213+ username : " {{ stackhpc_repo_mirror_username | default(omit, true) }}"
214+ password : " {{ stackhpc_repo_mirror_password | default(omit, true) }}"
215+ baseos :
216+ baseurl : " {{ stackhpc_repo_rocky_10_baseos_url }}"
217+ description : " Rocky Linux $releasever - BaseOS"
218+ file : rocky
219+ gpgkey : " {{ dnf_rocky_10_gpg_key_url }}"
220+ gpgcheck : yes
221+ username : " {{ stackhpc_repo_mirror_username | default(omit, true) }}"
222+ password : " {{ stackhpc_repo_mirror_password | default(omit, true) }}"
223+ crb :
224+ baseurl : " {{ stackhpc_repo_rocky_10_crb_url }}"
225+ description : " Rocky Linux $releasever - CRB"
226+ file : rocky
227+ gpgkey : " {{ dnf_rocky_10_gpg_key_url }}"
228+ gpgcheck : yes
229+ username : " {{ stackhpc_repo_mirror_username | default(omit, true) }}"
230+ password : " {{ stackhpc_repo_mirror_password | default(omit, true) }}"
231+ extras :
232+ baseurl : " {{ stackhpc_repo_rocky_10_extras_url }}"
233+ description : " Rocky Linux $releasever - Extras"
234+ file : rocky-extras
235+ gpgkey : " {{ dnf_rocky_10_gpg_key_url }}"
236+ gpgcheck : yes
237+ username : " {{ stackhpc_repo_mirror_username | default(omit, true) }}"
238+ password : " {{ stackhpc_repo_mirror_password | default(omit, true) }}"
239+
240+ # GPG key urls
241+ dnf_docker_gpg_key_url : " https://download.docker.com/linux/centos/gpg"
242+ dnf_elrepo_gpg_key_url : " https://www.elrepo.org/RPM-GPG-KEY-elrepo.org"
243+ dnf_elrepo_gpg_v2_key_url : " https://www.elrepo.org/RPM-GPG-KEY-v2-elrepo.org"
244+ dnf_epel_10_gpg_key_url : " https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-10"
245+ dnf_epel_9_gpg_key_url : " https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-9"
246+ dnf_rocky_10_gpg_key_url : " https://dl.rockylinux.org/pub/rocky/RPM-GPG-KEY-Rocky-10"
247+ dnf_rocky_9_gpg_key_url : " https://dl.rockylinux.org/pub/rocky/RPM-GPG-KEY-Rocky-9"
248+ dnf_rocky_9_sig_security_gpg_key_url : " https://dl.rockylinux.org/pub/sig/9/security/x86_64/security-common/RPM-GPG-KEY-Rocky-SIG-Security"
249+
150250# Whether to enable EPEL repositories. This affects RedHat-based systems only.
151251dnf_enable_epel : " {{ dnf_install_epel | bool }}"
152252
153253# Whether to enable the ELRepo repository. This affects RedHat-based, 9.x release systems only.
154254dnf_enable_elrepo_9 : " {{ dnf_install_elrepo_9 | bool }}"
255+ dnf_enable_elrepo_10 : " {{ dnf_install_elrepo_10 | bool }}"
155256
156257# Whether to enable DOCA repositories. This affects RedHat-based systems only.
157258dnf_enable_doca : " {{ dnf_install_doca | bool }}"
158259
159260# Whether to enable the DOCA kernel module repository. This affects RedHat-based systems only.
160261dnf_enable_doca_modules : " {{ dnf_install_doca | bool }}"
161262
162- # URL of EPEL GPG keys.
163- dnf_epel_9_gpg_key_url : " https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-9"
164-
165- rocky_9_gpg_key : " https://dl.rockylinux.org/pub/rocky/RPM-GPG-KEY-Rocky-9"
166- rocky_9_sig_security_gpg_key : " https://dl.rockylinux.org/pub/sig/9/security/x86_64/security-common/RPM-GPG-KEY-Rocky-SIG-Security"
167-
168263# Whether to install the epel-release package. This affects RedHat-based
169264# systems only. Default value is 'false'.
170265# dnf_install_epel:
171266
172267# Whether to create a repo file for ELRepo. This affects RedHat-based
173268# systems only.
174269dnf_install_elrepo_9 : false
270+ dnf_install_elrepo_10 : false
175271
176272# Whether to enable docker dnf repo in stackhpc_dnf_repos
177273dnf_enable_docker : true
178274
179- # URL of docker repo GPG key
180- dnf_docker_gpg_key_url : " https://download.docker.com/linux/centos/gpg"
181-
182275# Whether to create a repo file for DOCA. This affects RedHat-based
183276# systems only.
184277dnf_install_doca : " {{ 'mlnx' in group_names }}"
0 commit comments