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[kolla_base_distro_and_version] | 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+ rocky-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+ rocky-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,27 @@ 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+ # doca-modules:
86+ # baseurl: "{{ stackhpc_repo_rhel9_doca_modules_url }}"
87+ # description: "OFED Kernel module repository for DOCA {{ stackhpc_pulp_doca_version }} - RHEL $releasever"
88+ # enabled: "{{ dnf_enable_doca_modules | bool | default(false) }}"
89+ # priority: -1
90+ # file: doca
91+ # gpgcheck: no
92+ # username: "{{ stackhpc_repo_mirror_username | default(omit, true) }}"
93+ # password: "{{ stackhpc_repo_mirror_password | default(omit, true) }}"
94+
95+ # Custom repositories shared between all RHEL 9/10 derivatives.
7496dnf_custom_repos_el9 :
7597 epel :
7698 baseurl : " {{ stackhpc_repo_epel_9_url }}"
@@ -91,94 +113,164 @@ dnf_custom_repos_el9:
91113 username : " {{ stackhpc_repo_mirror_username | default(omit, true) }}"
92114 password : " {{ stackhpc_repo_mirror_password | default(omit, true) }}"
93115
94- # ELRepo 9
116+ dnf_custom_repos_el10 :
117+ epel :
118+ baseurl : " {{ stackhpc_repo_epel_10_url }}"
119+ description : " Extra Packages for Enterprise Linux $releasever - $basearch"
120+ enabled : " {{ dnf_enable_epel | bool }}"
121+ file : epel
122+ gpgkey : " {{ dnf_epel_10_gpg_key_url }}"
123+ gpgcheck : yes
124+ username : " {{ stackhpc_repo_mirror_username | default(omit, true) }}"
125+ password : " {{ stackhpc_repo_mirror_password | default(omit, true) }}"
126+ docker :
127+ baseurl : " {{ stackhpc_repo_centos_stream_10_docker_url }}"
128+ description : " Package repository for installing docker"
129+ enabled : " {{ dnf_enable_docker | bool }}"
130+ file : docker
131+ gpgkey : " {{ dnf_docker_gpg_key_url }}"
132+ gpgcheck : yes
133+ username : " {{ stackhpc_repo_mirror_username | default(omit, true) }}"
134+ password : " {{ stackhpc_repo_mirror_password | default(omit, true) }}"
135+
136+ # ELRepo 9/10
95137dnf_custom_repos_elrepo_9 :
96138 elrepo :
97139 baseurl : " {{ stackhpc_repo_elrepo_9_url }}"
98140 description : " ELRepo.org Community Enterprise Linux Repository - el9"
99141 enabled : " {{ dnf_enable_elrepo_9 | bool }}"
100142 file : elrepo
101- gpgkey : https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
143+ gpgkey :
144+ - " {{ dnf_elrepo_gpg_key_url }}"
145+ - " {{ dnf_elrepo_gpg_v2_key_url }}"
146+ gpgcheck : yes
147+ username : " {{ stackhpc_repo_mirror_username | default(omit, true) }}"
148+ password : " {{ stackhpc_repo_mirror_password | default(omit, true) }}"
149+
150+ dnf_custom_repos_elrepo_10 :
151+ elrepo :
152+ baseurl : " {{ stackhpc_repo_elrepo_10_url }}"
153+ description : " ELRepo.org Community Enterprise Linux Repository - el10"
154+ enabled : " {{ dnf_enable_elrepo_10 | bool }}"
155+ file : elrepo
156+ gpgkey : " {{ dnf_elrepo_gpg_v2_key_url }}"
102157 gpgcheck : yes
103158 username : " {{ stackhpc_repo_mirror_username | default(omit, true) }}"
104159 password : " {{ stackhpc_repo_mirror_password | default(omit, true) }}"
105160
106- # Rocky 9 specific repositories
161+ # Rocky 9/10 specific repositories
107162dnf_custom_repos_rocky_9 :
108163 appstream :
109164 baseurl : " {{ stackhpc_repo_rocky_9_appstream_url }}"
110165 description : " Rocky Linux $releasever - AppStream"
111166 file : rocky
112- gpgkey : " {{ rocky_9_gpg_key }}"
167+ gpgkey : " {{ dnf_rocky_9_gpg_key_url }}"
113168 gpgcheck : yes
114169 username : " {{ stackhpc_repo_mirror_username | default(omit, true) }}"
115170 password : " {{ stackhpc_repo_mirror_password | default(omit, true) }}"
116171 baseos :
117172 baseurl : " {{ stackhpc_repo_rocky_9_baseos_url }}"
118173 description : " Rocky Linux $releasever - BaseOS"
119174 file : rocky
120- gpgkey : " {{ rocky_9_gpg_key }}"
175+ gpgkey : " {{ dnf_rocky_9_gpg_key_url }}"
121176 gpgcheck : yes
122177 username : " {{ stackhpc_repo_mirror_username | default(omit, true) }}"
123178 password : " {{ stackhpc_repo_mirror_password | default(omit, true) }}"
124179 crb :
125180 baseurl : " {{ stackhpc_repo_rocky_9_crb_url }}"
126181 description : " Rocky Linux $releasever - CRB"
127182 file : rocky
128- gpgkey : " {{ rocky_9_gpg_key }}"
183+ gpgkey : " {{ dnf_rocky_9_gpg_key_url }}"
129184 gpgcheck : yes
130185 username : " {{ stackhpc_repo_mirror_username | default(omit, true) }}"
131186 password : " {{ stackhpc_repo_mirror_password | default(omit, true) }}"
132187 extras :
133188 baseurl : " {{ stackhpc_repo_rocky_9_extras_url }}"
134189 description : " Rocky Linux $releasever - Extras"
135190 file : rocky-extras
136- gpgkey : " {{ rocky_9_gpg_key }}"
191+ gpgkey : " {{ dnf_rocky_9_gpg_key_url }}"
137192 gpgcheck : yes
138193 username : " {{ stackhpc_repo_mirror_username | default(omit, true) }}"
139194 password : " {{ stackhpc_repo_mirror_password | default(omit, true) }}"
140195 security-common :
141196 baseurl : " {{ stackhpc_repo_rocky_9_sig_security_common_url }}"
142197 description : " Rocky Linux $releasever - SIG Security Common"
143198 file : Rocky-SIG-Security-Common
144- gpgkey : " {{ rocky_9_sig_security_gpg_key }}"
199+ gpgkey : " {{ dnf_rocky_9_sig_security_gpg_key_url }}"
145200 gpgcheck : yes
146201 includepkgs : " openssh*"
147202 username : " {{ stackhpc_repo_mirror_username | default(omit, true) }}"
148203 password : " {{ stackhpc_repo_mirror_password | default(omit, true) }}"
149204
205+ dnf_custom_repos_rocky_10 :
206+ appstream :
207+ baseurl : " {{ stackhpc_repo_rocky_10_appstream_url }}"
208+ description : " Rocky Linux $releasever - AppStream"
209+ file : rocky
210+ gpgkey : " {{ dnf_rocky_10_gpg_key_url }}"
211+ gpgcheck : yes
212+ username : " {{ stackhpc_repo_mirror_username | default(omit, true) }}"
213+ password : " {{ stackhpc_repo_mirror_password | default(omit, true) }}"
214+ baseos :
215+ baseurl : " {{ stackhpc_repo_rocky_10_baseos_url }}"
216+ description : " Rocky Linux $releasever - BaseOS"
217+ file : rocky
218+ gpgkey : " {{ dnf_rocky_10_gpg_key_url }}"
219+ gpgcheck : yes
220+ username : " {{ stackhpc_repo_mirror_username | default(omit, true) }}"
221+ password : " {{ stackhpc_repo_mirror_password | default(omit, true) }}"
222+ crb :
223+ baseurl : " {{ stackhpc_repo_rocky_10_crb_url }}"
224+ description : " Rocky Linux $releasever - CRB"
225+ file : rocky
226+ gpgkey : " {{ dnf_rocky_10_gpg_key_url }}"
227+ gpgcheck : yes
228+ username : " {{ stackhpc_repo_mirror_username | default(omit, true) }}"
229+ password : " {{ stackhpc_repo_mirror_password | default(omit, true) }}"
230+ extras :
231+ baseurl : " {{ stackhpc_repo_rocky_10_extras_url }}"
232+ description : " Rocky Linux $releasever - Extras"
233+ file : rocky-extras
234+ gpgkey : " {{ dnf_rocky_10_gpg_key_url }}"
235+ gpgcheck : yes
236+ username : " {{ stackhpc_repo_mirror_username | default(omit, true) }}"
237+ password : " {{ stackhpc_repo_mirror_password | default(omit, true) }}"
238+
239+ # GPG key urls
240+ dnf_docker_gpg_key_url : " https://download.docker.com/linux/centos/gpg"
241+ dnf_elrepo_gpg_key_url : " https://www.elrepo.org/RPM-GPG-KEY-elrepo.org"
242+ dnf_elrepo_gpg_v2_key_url : " https://www.elrepo.org/RPM-GPG-KEY-v2-elrepo.org"
243+ dnf_epel_10_gpg_key_url : " https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-10"
244+ dnf_epel_9_gpg_key_url : " https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-9"
245+ dnf_rocky_10_gpg_key_url : " https://dl.rockylinux.org/pub/rocky/RPM-GPG-KEY-Rocky-10"
246+ dnf_rocky_9_gpg_key_url : " https://dl.rockylinux.org/pub/rocky/RPM-GPG-KEY-Rocky-9"
247+ 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"
248+
150249# Whether to enable EPEL repositories. This affects RedHat-based systems only.
151250dnf_enable_epel : " {{ dnf_install_epel | bool }}"
152251
153252# Whether to enable the ELRepo repository. This affects RedHat-based, 9.x release systems only.
154253dnf_enable_elrepo_9 : " {{ dnf_install_elrepo_9 | bool }}"
254+ dnf_enable_elrepo_10 : " {{ dnf_install_elrepo_10 | bool }}"
155255
156256# Whether to enable DOCA repositories. This affects RedHat-based systems only.
157257dnf_enable_doca : " {{ dnf_install_doca | bool }}"
158258
159259# Whether to enable the DOCA kernel module repository. This affects RedHat-based systems only.
160260dnf_enable_doca_modules : " {{ dnf_install_doca | bool }}"
161261
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-
168262# Whether to install the epel-release package. This affects RedHat-based
169263# systems only. Default value is 'false'.
170264# dnf_install_epel:
171265
172266# Whether to create a repo file for ELRepo. This affects RedHat-based
173267# systems only.
174268dnf_install_elrepo_9 : false
269+ dnf_install_elrepo_10 : false
175270
176271# Whether to enable docker dnf repo in stackhpc_dnf_repos
177272dnf_enable_docker : true
178273
179- # URL of docker repo GPG key
180- dnf_docker_gpg_key_url : " https://download.docker.com/linux/centos/gpg"
181-
182274# Whether to create a repo file for DOCA. This affects RedHat-based
183275# systems only.
184276dnf_install_doca : " {{ 'mlnx' in group_names }}"
0 commit comments