Skip to content

(MODULES-11917) Default RHEL 10 to OpenJDK 21 - #631

Merged
imaqsood merged 1 commit into
mainfrom
MODULES-11917
Aug 6, 2026
Merged

(MODULES-11917) Default RHEL 10 to OpenJDK 21#631
imaqsood merged 1 commit into
mainfrom
MODULES-11917

Conversation

@imaqsood

@imaqsood imaqsood commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

What

RHEL 10 dropped the java-1.8.0-openjdk packages, so the RedHat-family default of Java 8 caused dnf install java-1.8.0-openjdk-devel to fail on RHEL 10 (Unable to find a match), breaking the install acceptance tests.

This adds a version branch in manifests/params.pp so:

  • RHEL ≥ 10 → OpenJDK 21 (java-21-openjdk{,-devel}, java_home = /usr/lib/jvm/java-21-openjdk/)
  • RHEL 7.1–9 → Java 8 (unchanged)
  • RHEL < 7.1 → 1.7.0 (unchanged)

Adds spec coverage in spec/classes/java_spec.rb.

Why

Split out of #MODULES-11704 (Puppet 9 support) — the RHEL 10 default is independent of Puppet 9, so it targets main directly on its own ticket.

Jira: MODULES-11917

🤖 Generated with Claude Code

RHEL 10 dropped the java-1.8.0-openjdk packages, so the RedHat family
default of Java 8 caused `dnf install java-1.8.0-openjdk-devel` to fail
on RHEL 10 (Unable to find a match), breaking the install acceptance
tests.

Add a version branch so RHEL >= 10 defaults to the current LTS
(OpenJDK 21): java-21-openjdk{,-devel} with java_home
/usr/lib/jvm/java-21-openjdk/. RHEL 7.1-9 keep Java 8 and < 7.1 keeps
1.7.0, both unchanged.

Co-Authored-By: Claude <noreply@anthropic.com>
@imaqsood
imaqsood requested review from a team and bastelfreak as code owners August 6, 2026 12:18
@imaqsood
imaqsood merged commit 5eca4c8 into main Aug 6, 2026
25 checks passed
@imaqsood
imaqsood deleted the MODULES-11917 branch August 6, 2026 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants