From d1aab4d8b87b211ce40ad958a36aada6306691f1 Mon Sep 17 00:00:00 2001 From: shadow1runner Date: Wed, 27 May 2026 23:44:06 +0200 Subject: [PATCH] Feature/oracle linux11 (#532) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: handle Oracle Linux UEK kernel package name for br_netfilter Oracle Linux uses the Unbreakable Enterprise Kernel (UEK) instead of the standard RHEL kernel. The `kernel-modules-extra` package does not exist on Oracle Linux — the equivalent is `kernel-uek-modules-extra`. Without this fix, the prereq role fails on Oracle Linux 10 with: "No package kernel-modules-extra available." Signed-off-by: Helmut Wolf <3902045+shadow1runner@users.noreply.github.com> * chore: update README to include Oracle Linux Signed-off-by: Helmut Wolf <3902045+shadow1runner@users.noreply.github.com> --------- Signed-off-by: Helmut Wolf <3902045+shadow1runner@users.noreply.github.com> Co-authored-by: Helmut Wolf <3902045+shadow1runner@users.noreply.github.com> --- README.md | 2 +- roles/prereq/tasks/main.yml | 13 ++++++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b43bd22..fcca317 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ Easily bring up a cluster on machines running: - [X] Debian - [X] Ubuntu - [X] Raspberry Pi OS -- [X] RHEL Family (CentOS, Redhat, Rocky Linux...) +- [X] RHEL Family (CentOS, Redhat, Rocky Linux, Oracle Linux...) - [X] SUSE Family (SLES, OpenSUSE Leap, Tumbleweed...) - [X] ArchLinux diff --git a/roles/prereq/tasks/main.yml b/roles/prereq/tasks/main.yml index 57c9e8e..10326e8 100644 --- a/roles/prereq/tasks/main.yml +++ b/roles/prereq/tasks/main.yml @@ -12,11 +12,22 @@ update_cache: "{{ airgap_dir is not defined }}" - name: Install Dependent RHEL 10 Package - when: ansible_facts['os_family'] == 'RedHat' and ansible_facts['distribution_major_version'] == "10" + when: + - ansible_facts['os_family'] == 'RedHat' + - ansible_facts['distribution_major_version'] == "10" + - ansible_facts['distribution'] != 'OracleLinux' ansible.builtin.dnf: name: kernel-modules-extra # Load br_netfilter module update_cache: "{{ airgap_dir is not defined }}" +- name: Install Dependent Oracle Linux 10 Package + when: + - ansible_facts['distribution'] == 'OracleLinux' + - ansible_facts['distribution_major_version'] == "10" + ansible.builtin.dnf: + name: kernel-uek-modules-extra # Load br_netfilter module (UEK kernel) + update_cache: "{{ airgap_dir is not defined }}" + - name: Enable IPv4 forwarding ansible.posix.sysctl: name: net.ipv4.ip_forward