48
48
# This is done by default for hosts in the overcloud group via a group_vars
49
49
# file.
50
50
stackhpc_dnf_repos_8 : " {{ dnf_custom_repos_el8 | combine(lookup('vars', 'dnf_custom_repos_' ~ ansible_facts.distribution | lower )) }}"
51
- stackhpc_dnf_repos_9 : " {{ dnf_custom_repos_el9 | combine(dnf_custom_repos_rocky_9) }}"
51
+ stackhpc_dnf_repos_9 : " {{ dnf_custom_repos_el9 | combine(dnf_custom_repos_rocky_9) | combine(dnf_custom_repos_elrepo_9 if dnf_install_elrepo_9 | bool else {}) }}"
52
52
53
53
stackhpc_dnf_repos : " {{ stackhpc_dnf_repos_9 if os_release == '9' else stackhpc_dnf_repos_8 }}"
54
54
@@ -145,6 +145,16 @@ dnf_custom_repos_el9:
145
145
gpgkey : " {{ dnf_docker_gpg_key_url }}"
146
146
gpgcheck : yes
147
147
148
+ # ELRepo 9
149
+ dnf_custom_repos_elrepo_9 :
150
+ elrepo :
151
+ baseurl : " {{ stackhpc_repo_elrepo_9_url }}"
152
+ description : " ELRepo.org Community Enterprise Linux Repository - el9"
153
+ enabled : " {{ dnf_enable_elrepo_9 | bool }}"
154
+ file : elrepo
155
+ gpgkey : https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
156
+ gpgcheck : yes
157
+
148
158
# Rocky 9 specific repositories
149
159
dnf_custom_repos_rocky_9 :
150
160
appstream :
@@ -175,6 +185,9 @@ dnf_custom_repos_rocky_9:
175
185
# Whether to enable EPEL repositories. This affects RedHat-based systems only.
176
186
dnf_enable_epel : " {{ dnf_install_epel | bool }}"
177
187
188
+ # Whether to enable the ELRepo repository. This affects RedHat-based, 9.x release systems only.
189
+ dnf_enable_elrepo_9 : " {{ dnf_install_elrepo_9 | bool }}"
190
+
178
191
# URL of EPEL GPG keys.
179
192
dnf_epel_8_gpg_key_url : " https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-8"
180
193
dnf_epel_9_gpg_key_url : " https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-9"
@@ -185,6 +198,10 @@ rocky_9_gpg_key: "https://dl.rockylinux.org/pub/rocky/RPM-GPG-KEY-Rocky-9"
185
198
# systems only. Default value is 'false'.
186
199
# dnf_install_epel:
187
200
201
+ # Whether to create a repo file for ELRepo. This affects RedHat-based
202
+ # systems only.
203
+ dnf_install_elrepo_9 : false
204
+
188
205
# Whether to enable docker dnf repo in stackhpc_dnf_repos
189
206
dnf_enable_docker : true
190
207
0 commit comments