4747# To use these repos, set dnf_custom_repos to the value of stackhpc_dnf_repos.
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) }}"
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 {}) }}"
5151
5252# Custom repositories shared between all RHEL 9 derivatives.
5353dnf_custom_repos_el9 :
@@ -66,6 +66,16 @@ dnf_custom_repos_el9:
6666 gpgkey : " {{ dnf_docker_gpg_key_url }}"
6767 gpgcheck : yes
6868
69+ # ELRepo 9
70+ dnf_custom_repos_elrepo_9 :
71+ elrepo :
72+ baseurl : " {{ stackhpc_repo_elrepo_9_url }}"
73+ description : " ELRepo.org Community Enterprise Linux Repository - el9"
74+ enabled : " {{ dnf_enable_elrepo_9 | bool }}"
75+ file : elrepo
76+ gpgkey : https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
77+ gpgcheck : yes
78+
6979# Rocky 9 specific repositories
7080dnf_custom_repos_rocky_9 :
7181 appstream :
@@ -96,6 +106,9 @@ dnf_custom_repos_rocky_9:
96106# Whether to enable EPEL repositories. This affects RedHat-based systems only.
97107dnf_enable_epel : " {{ dnf_install_epel | bool }}"
98108
109+ # Whether to enable the ELRepo repository. This affects RedHat-based, 9.x release systems only.
110+ dnf_enable_elrepo_9 : " {{ dnf_install_elrepo_9 | bool }}"
111+
99112# URL of EPEL GPG keys.
100113dnf_epel_9_gpg_key_url : " https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-9"
101114
@@ -105,6 +118,10 @@ rocky_9_gpg_key: "https://dl.rockylinux.org/pub/rocky/RPM-GPG-KEY-Rocky-9"
105118# systems only. Default value is 'false'.
106119# dnf_install_epel:
107120
121+ # Whether to create a repo file for ELRepo. This affects RedHat-based
122+ # systems only.
123+ dnf_install_elrepo_9 : false
124+
108125# Whether to enable docker dnf repo in stackhpc_dnf_repos
109126dnf_enable_docker : true
110127
0 commit comments