Skip to content

Commit 4fd9e9b

Browse files
authored
Merge pull request #2468 from stackhpc/2026.1-config-purge-rl9
2026.1: remove references to RL9 from etc/kayobe/
2 parents 9136e23 + db6ca20 commit 4fd9e9b

23 files changed

Lines changed: 18 additions & 570 deletions

File tree

etc/kayobe/ansible/fixes/fix-grub-rl9.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

etc/kayobe/ansible/maintenance/cis.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
that:
1313
- ssh_key_type != 'ed25519'
1414
fail_msg: FIPS policy does not currently support ed25519 SSH keys on RHEL family systems
15-
when: ansible_facts.os_family == 'RedHat' and rhel9cis_crypto_policy == 'FIPS'
15+
when: ansible_facts.os_family == 'RedHat' and rhel10cis_crypto_policy == 'FIPS'
1616

1717
- name: Ensure the cron package is installed on ubuntu
1818
ansible.builtin.package:
@@ -47,11 +47,6 @@
4747
tags:
4848
- cis
4949
tasks:
50-
- name: Run CIS hardening role (RHEL 9)
51-
ansible.builtin.include_role:
52-
name: ansible-lockdown.rhel9_cis
53-
when: ansible_facts.os_family == 'RedHat' and ansible_facts.distribution_major_version == '9'
54-
5550
- name: Run CIS hardening role (RHEL 10)
5651
ansible.builtin.include_role:
5752
name: ansible-lockdown.rhel10_cis

etc/kayobe/ansible/maintenance/rocky-97-ofed-upgrade.yml

Lines changed: 0 additions & 107 deletions
This file was deleted.

etc/kayobe/ansible/requirements.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ roles:
1616
- name: ansible-lockdown.ubuntu24_cis
1717
src: https://github.com/ansible-lockdown/UBUNTU24-CIS
1818
version: 1.0.4
19-
- name: ansible-lockdown.rhel9_cis
20-
src: https://github.com/ansible-lockdown/RHEL9-CIS
21-
version: v1.3.4
2219
- name: ansible-lockdown.rhel10_cis
2320
src: https://github.com/ansible-lockdown/RHEL10-CIS
2421
version: 1.0.2

etc/kayobe/dnf.yml

Lines changed: 4 additions & 115 deletions
Original file line numberDiff line numberDiff line change
@@ -48,30 +48,9 @@ dnf_custom_repos: "{{ stackhpc_dnf_repos[os_release] | default({}) if stackhpc_r
4848
# This is done by default for hosts in the overcloud group via a group_vars
4949
# file.
5050
stackhpc_dnf_repos:
51-
"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 {}) }}"
5251
"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 {}) }}"
5352

5453
# DOCA repositories
55-
dnf_custom_repos_doca_rocky_9:
56-
doca:
57-
baseurl: "{{ stackhpc_repo_rhel9_doca_url }}"
58-
description: "DOCA Online Repo {{ stackhpc_pulp_rocky_9_doca_version }} - RHEL $releasever"
59-
enabled: "{{ dnf_enable_doca | bool | default(false) }}"
60-
priority: -1
61-
file: doca
62-
gpgcheck: no
63-
username: "{{ stackhpc_repo_mirror_username | default(omit, true) }}"
64-
password: "{{ stackhpc_repo_mirror_password | default(omit, true) }}"
65-
doca-modules:
66-
baseurl: "{{ stackhpc_repo_rhel9_doca_modules_url }}"
67-
description: "OFED Kernel module repository for DOCA {{ stackhpc_pulp_rocky_9_doca_version }} - RHEL $releasever"
68-
enabled: "{{ dnf_enable_doca_modules | bool | default(false) }}"
69-
priority: -1
70-
file: doca
71-
gpgcheck: no
72-
username: "{{ stackhpc_repo_mirror_username | default(omit, true) }}"
73-
password: "{{ stackhpc_repo_mirror_password | default(omit, true) }}"
74-
7554
dnf_custom_repos_doca_rocky_10:
7655
doca:
7756
baseurl: "{{ stackhpc_repo_rhel10_doca_url }}"
@@ -92,27 +71,7 @@ dnf_custom_repos_doca_rocky_10:
9271
username: "{{ stackhpc_repo_mirror_username | default(omit, true) }}"
9372
password: "{{ stackhpc_repo_mirror_password | default(omit, true) }}"
9473

95-
# Custom repositories shared between all RHEL 9/10 derivatives.
96-
dnf_custom_repos_el9:
97-
epel:
98-
baseurl: "{{ stackhpc_repo_epel_9_url }}"
99-
description: "Extra Packages for Enterprise Linux $releasever - $basearch"
100-
enabled: "{{ dnf_enable_epel | bool }}"
101-
file: epel
102-
gpgkey: "{{ dnf_epel_9_gpg_key_url }}"
103-
gpgcheck: yes
104-
username: "{{ stackhpc_repo_mirror_username | default(omit, true) }}"
105-
password: "{{ stackhpc_repo_mirror_password | default(omit, true) }}"
106-
docker:
107-
baseurl: "{{ stackhpc_repo_centos_stream_9_docker_url }}"
108-
description: "Package repository for installing docker"
109-
enabled: "{{ dnf_enable_docker | bool }}"
110-
file: docker
111-
gpgkey: "{{ dnf_docker_gpg_key_url }}"
112-
gpgcheck: yes
113-
username: "{{ stackhpc_repo_mirror_username | default(omit, true) }}"
114-
password: "{{ stackhpc_repo_mirror_password | default(omit, true) }}"
115-
74+
# Custom repositories shared between all RHEL 10 derivatives.
11675
dnf_custom_repos_el10:
11776
epel:
11877
baseurl: "{{ stackhpc_repo_epel_10_url }}"
@@ -133,20 +92,7 @@ dnf_custom_repos_el10:
13392
username: "{{ stackhpc_repo_mirror_username | default(omit, true) }}"
13493
password: "{{ stackhpc_repo_mirror_password | default(omit, true) }}"
13594

136-
# ELRepo 9/10
137-
dnf_custom_repos_elrepo_9:
138-
elrepo:
139-
baseurl: "{{ stackhpc_repo_elrepo_9_url }}"
140-
description: "ELRepo.org Community Enterprise Linux Repository - el9"
141-
enabled: "{{ dnf_enable_elrepo_9 | bool }}"
142-
file: elrepo
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-
95+
# ELRepo 10
15096
dnf_custom_repos_elrepo_10:
15197
elrepo:
15298
baseurl: "{{ stackhpc_repo_elrepo_10_url }}"
@@ -158,59 +104,7 @@ dnf_custom_repos_elrepo_10:
158104
username: "{{ stackhpc_repo_mirror_username | default(omit, true) }}"
159105
password: "{{ stackhpc_repo_mirror_password | default(omit, true) }}"
160106

161-
# Rocky 9/10 specific repositories
162-
dnf_custom_repos_rocky_9:
163-
appstream:
164-
baseurl: "{{ stackhpc_repo_rocky_9_appstream_url }}"
165-
description: "Rocky Linux $releasever - AppStream"
166-
file: rocky
167-
gpgkey: "{{ dnf_rocky_9_gpg_key_url }}"
168-
gpgcheck: yes
169-
username: "{{ stackhpc_repo_mirror_username | default(omit, true) }}"
170-
password: "{{ stackhpc_repo_mirror_password | default(omit, true) }}"
171-
baseos:
172-
baseurl: "{{ stackhpc_repo_rocky_9_baseos_url }}"
173-
description: "Rocky Linux $releasever - BaseOS"
174-
file: rocky
175-
gpgkey: "{{ dnf_rocky_9_gpg_key_url }}"
176-
gpgcheck: yes
177-
username: "{{ stackhpc_repo_mirror_username | default(omit, true) }}"
178-
password: "{{ stackhpc_repo_mirror_password | default(omit, true) }}"
179-
crb:
180-
baseurl: "{{ stackhpc_repo_rocky_9_crb_url }}"
181-
description: "Rocky Linux $releasever - CRB"
182-
file: rocky
183-
gpgkey: "{{ dnf_rocky_9_gpg_key_url }}"
184-
gpgcheck: yes
185-
username: "{{ stackhpc_repo_mirror_username | default(omit, true) }}"
186-
password: "{{ stackhpc_repo_mirror_password | default(omit, true) }}"
187-
extras:
188-
baseurl: "{{ stackhpc_repo_rocky_9_extras_url }}"
189-
description: "Rocky Linux $releasever - Extras"
190-
file: rocky-extras
191-
gpgkey: "{{ dnf_rocky_9_gpg_key_url }}"
192-
gpgcheck: yes
193-
username: "{{ stackhpc_repo_mirror_username | default(omit, true) }}"
194-
password: "{{ stackhpc_repo_mirror_password | default(omit, true) }}"
195-
security:
196-
baseurl: "{{ stackhpc_repo_rocky_9_security_url }}"
197-
description: "Rocky Linux $releasever - Security"
198-
enabled: "{{ dnf_enable_rocky_security | bool }}"
199-
file: rocky-security
200-
gpgkey: "{{ dnf_rocky_9_gpg_key_url }}"
201-
gpgcheck: yes
202-
username: "{{ stackhpc_repo_mirror_username | default(omit, true) }}"
203-
password: "{{ stackhpc_repo_mirror_password | default(omit, true) }}"
204-
security-common:
205-
baseurl: "{{ stackhpc_repo_rocky_9_sig_security_common_url }}"
206-
description: "Rocky Linux $releasever - SIG Security Common"
207-
file: Rocky-SIG-Security-Common
208-
gpgkey: "{{ dnf_rocky_9_sig_security_gpg_key_url }}"
209-
gpgcheck: yes
210-
includepkgs: "openssh*"
211-
username: "{{ stackhpc_repo_mirror_username | default(omit, true) }}"
212-
password: "{{ stackhpc_repo_mirror_password | default(omit, true) }}"
213-
107+
# Rocky 10 specific repositories
214108
dnf_custom_repos_rocky_10:
215109
appstream:
216110
baseurl: "{{ stackhpc_repo_rocky_10_appstream_url }}"
@@ -259,16 +153,12 @@ dnf_docker_gpg_key_url: "https://download.docker.com/linux/centos/gpg"
259153
dnf_elrepo_gpg_key_url: "https://www.elrepo.org/RPM-GPG-KEY-elrepo.org"
260154
dnf_elrepo_gpg_v2_key_url: "https://www.elrepo.org/RPM-GPG-KEY-v2-elrepo.org"
261155
dnf_epel_10_gpg_key_url: "https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-10"
262-
dnf_epel_9_gpg_key_url: "https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-9"
263156
dnf_rocky_10_gpg_key_url: "https://dl.rockylinux.org/pub/rocky/RPM-GPG-KEY-Rocky-10"
264-
dnf_rocky_9_gpg_key_url: "https://dl.rockylinux.org/pub/rocky/RPM-GPG-KEY-Rocky-9"
265-
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"
266157

267158
# Whether to enable EPEL repositories. This affects RedHat-based systems only.
268159
dnf_enable_epel: "{{ dnf_install_epel | bool }}"
269160

270-
# Whether to enable the ELRepo repository. This affects RedHat-based, 9.x release systems only.
271-
dnf_enable_elrepo_9: "{{ dnf_install_elrepo_9 | bool }}"
161+
# Whether to enable the ELRepo repository.
272162
dnf_enable_elrepo_10: "{{ dnf_install_elrepo_10 | bool }}"
273163

274164
# Whether to enable DOCA repositories. This affects RedHat-based systems only.
@@ -283,7 +173,6 @@ dnf_enable_doca_modules: "{{ dnf_install_doca | bool }}"
283173

284174
# Whether to create a repo file for ELRepo. This affects RedHat-based
285175
# systems only.
286-
dnf_install_elrepo_9: false
287176
dnf_install_elrepo_10: false
288177

289178
# Whether to enable docker dnf repo in stackhpc_dnf_repos

etc/kayobe/environments/aio/automated-setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ run_tempest() {
217217
if ! sudo docker image inspect kayobe:latest > /dev/null 2>&1; then
218218
echo "Building Kayobe Automation image"
219219
sudo DOCKER_BUILDKIT=1 docker build \
220-
--build-arg BASE_IMAGE=rockylinux/rockylinux:9 \
220+
--build-arg BASE_IMAGE=rockylinux/rockylinux:10 \
221221
--build-arg USE_PYTHON_312=true \
222222
--file .automation/docker/kayobe/Dockerfile \
223223
--tag kayobe:latest \

etc/kayobe/environments/aio/globals.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
# "rocky".
5050
os_distribution: "{{ lookup('pipe', '. /etc/os-release && echo $ID') | trim }}"
5151

52-
# OS release. Valid options are "9" when os_distribution is "rocky", or
52+
# OS release. Valid options are "10" when os_distribution is "rocky", or
5353
# "noble" when os_distribution is "ubuntu".
5454
os_release: >-
5555
{{ (lookup('pipe', '. /etc/os-release && echo $VERSION_CODENAME') | trim) if os_distribution == 'ubuntu' else

etc/kayobe/environments/aio/inventory/group_vars/cis-hardening/cis

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,4 @@
11
---
2-
##############################################################################
3-
# Rocky 9 CIS Hardening Configuration
4-
5-
# NOTE: Using DEFAULT crypto policy in CI. FIPS breaks ed25519 SSH keys, and
6-
# FUTURE breaks wazuh agent repo metadata download.
7-
rhel9cis_crypto_policy: DEFAULT
8-
9-
# Disable shell timeout for inactivity which can be disruptive to
10-
# development work.
11-
rhel9cis_rule_5_4_3_2: false
12-
132
##############################################################################
143
# Rocky 10 CIS Hardening Configuration
154

etc/kayobe/environments/aio/kolla/config/nova/nova-compute.conf

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
{% if kolla_base_arch == 'aarch64' %}
2-
{% if kolla_base_distro_and_version == 'rocky-9' %}
3-
[libvirt]
4-
cpu_mode = custom
5-
cpu_model = max
6-
{% elif kolla_base_distro_and_version == 'rocky-10' %}
2+
{% if kolla_base_distro_and_version == 'rocky-10' %}
73
[libvirt]
84
cpu_mode = none
95
{% endif %}

0 commit comments

Comments
 (0)