4848# This is done by default for hosts in the overcloud group via a group_vars
4949# file.
5050stackhpc_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 {}) }}"
5252
5353stackhpc_dnf_repos : " {{ stackhpc_dnf_repos_9 if os_release == '9' else stackhpc_dnf_repos_8 }}"
5454
@@ -135,6 +135,16 @@ dnf_custom_repos_el9:
135135 gpgkey : " {{ dnf_docker_gpg_key_url }}"
136136 gpgcheck : yes
137137
138+ # ELRepo 9
139+ dnf_custom_repos_elrepo_9 :
140+ elrepo :
141+ baseurl : " {{ stackhpc_repo_elrepo_9_url }}"
142+ description : " ELRepo.org Community Enterprise Linux Repository - el9"
143+ enabled : " {{ dnf_enable_elrepo_9 | bool }}"
144+ file : elrepo
145+ gpgkey : https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
146+ gpgcheck : yes
147+
138148# Rocky 9 specific repositories
139149dnf_custom_repos_rocky_9 :
140150 appstream :
@@ -165,6 +175,9 @@ dnf_custom_repos_rocky_9:
165175# Whether to enable EPEL repositories. This affects RedHat-based systems only.
166176dnf_enable_epel : " {{ dnf_install_epel | bool }}"
167177
178+ # Whether to enable the ELRepo repository. This affects RedHat-based, 9.x release systems only.
179+ dnf_enable_elrepo_9 : " {{ dnf_install_elrepo_9 | bool }}"
180+
168181# URL of EPEL GPG keys.
169182dnf_epel_8_gpg_key_url : " https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-8"
170183dnf_epel_9_gpg_key_url : " https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-9"
@@ -175,6 +188,10 @@ rocky_9_gpg_key: "https://dl.rockylinux.org/pub/rocky/RPM-GPG-KEY-Rocky-9"
175188# systems only. Default value is 'false'.
176189# dnf_install_epel:
177190
191+ # Whether to create a repo file for ELRepo. This affects RedHat-based
192+ # systems only.
193+ dnf_install_elrepo_9 : false
194+
178195# Whether to enable docker dnf repo in stackhpc_dnf_repos
179196dnf_enable_docker : true
180197
0 commit comments