(MODULES-11917) Default RHEL 10 to OpenJDK 21 - #631
Merged
Conversation
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>
amitkarsale
approved these changes
Aug 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
RHEL 10 dropped the
java-1.8.0-openjdkpackages, so the RedHat-family default of Java 8 causeddnf install java-1.8.0-openjdk-develto fail on RHEL 10 (Unable to find a match), breaking the install acceptance tests.This adds a version branch in
manifests/params.ppso:java-21-openjdk{,-devel},java_home = /usr/lib/jvm/java-21-openjdk/)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
maindirectly on its own ticket.Jira: MODULES-11917
🤖 Generated with Claude Code