Skip to content

Commit aa99d21

Browse files
authored
Merge pull request #623 from stackhpc/feat/yoga-elrepo-9
Add configuration for ELRepo 9
2 parents e21faa4 + aab631c commit aa99d21

File tree

5 files changed

+37
-1
lines changed

5 files changed

+37
-1
lines changed

etc/kayobe/dnf.yml

+18-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
# This is done by default for hosts in the overcloud group via a group_vars
4949
# file.
5050
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 {}) }}"
5252

5353
stackhpc_dnf_repos: "{{ stackhpc_dnf_repos_9 if os_release == '9' else stackhpc_dnf_repos_8 }}"
5454

@@ -145,6 +145,16 @@ dnf_custom_repos_el9:
145145
gpgkey: "{{ dnf_docker_gpg_key_url }}"
146146
gpgcheck: yes
147147

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+
148158
# Rocky 9 specific repositories
149159
dnf_custom_repos_rocky_9:
150160
appstream:
@@ -175,6 +185,9 @@ dnf_custom_repos_rocky_9:
175185
# Whether to enable EPEL repositories. This affects RedHat-based systems only.
176186
dnf_enable_epel: "{{ dnf_install_epel | bool }}"
177187

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+
178191
# URL of EPEL GPG keys.
179192
dnf_epel_8_gpg_key_url: "https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-8"
180193
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"
185198
# systems only. Default value is 'false'.
186199
#dnf_install_epel:
187200

201+
# Whether to create a repo file for ELRepo. This affects RedHat-based
202+
# systems only.
203+
dnf_install_elrepo_9: false
204+
188205
# Whether to enable docker dnf repo in stackhpc_dnf_repos
189206
dnf_enable_docker: true
190207

etc/kayobe/pulp-repo-versions.yml

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ stackhpc_pulp_repo_docker_ce_ubuntu_version: 20230908T013529
2020
stackhpc_pulp_repo_docker_version: 20230801T003759
2121
stackhpc_pulp_repo_elasticsearch_logstash_kibana_7_x_version: 20230727T144020
2222
stackhpc_pulp_repo_epel_9_version: 20230302T031902
23+
stackhpc_pulp_repo_elrepo_9_version: 20230907T075311
2324
stackhpc_pulp_repo_epel_modular_version: 20220913T043117
2425
stackhpc_pulp_repo_epel_version: 20230206T150339
2526
stackhpc_pulp_repo_grafana_version: 20230903T003752

etc/kayobe/pulp.yml

+8
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,14 @@ stackhpc_pulp_rpm_repos:
466466
sync_policy: mirror_content_only
467467
required: "{{ stackhpc_pulp_sync_el_9 | bool }}"
468468

469+
# ELRepo 9 repository
470+
- name: ELRepo.org Community Enterprise Linux Repository - el9
471+
url: "{{ stackhpc_release_pulp_content_url }}/elrepo/elrepo/el9/x86_64/{{ stackhpc_pulp_repo_elrepo_9_version }}"
472+
distribution_name: elrepo-el9-x86_64-
473+
base_path: elrepo/elrepo/el9/x86_64/
474+
sync_policy: mirror_content_only
475+
required: "{{ stackhpc_pulp_sync_el_9 | bool }}"
476+
469477
# Third-party repositories
470478
- name: Docker CE for CentOS 9
471479
url: "{{ stackhpc_release_pulp_content_url }}/docker-ce/centos/9/x86_64/stable/{{ stackhpc_pulp_repo_centos_stream_9_docker_version }}"

etc/kayobe/stackhpc.yml

+4
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,10 @@ stackhpc_repo_rocky_9_highavailability_version: "{{ stackhpc_repo_distribution }
189189
stackhpc_repo_epel_9_url: "{{ stackhpc_repo_mirror_url }}/pulp/content/epel/9/Everything/x86_64/{{ stackhpc_repo_epel_9_version }}"
190190
stackhpc_repo_epel_9_version: "{{ stackhpc_repo_distribution }}"
191191

192+
# ELRepo 9
193+
stackhpc_repo_elrepo_9_url: "{{ stackhpc_repo_mirror_url }}/pulp/content/elrepo/elrepo/el9/x86_64/{{ stackhpc_repo_elrepo_9_version }}"
194+
stackhpc_repo_elrepo_9_version: "{{ stackhpc_repo_distribution }}"
195+
192196
###############################################################################
193197
# Sources
194198

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
features:
3+
- |
4+
Provide ELRepo 9, which in turn provides packages to support be2net
5+
and mpt3sas hardware. Configuration of ELRepo 9 is disabled by default
6+
and may be enabled by setting `dnf_install_elrepo_9: true`.

0 commit comments

Comments
 (0)