Skip to content

(MODULES-11739) Add RHEL 10 support#2629

Open
SugatD wants to merge 5 commits into
mainfrom
MODULES-11739-rhel-10-support
Open

(MODULES-11739) Add RHEL 10 support#2629
SugatD wants to merge 5 commits into
mainfrom
MODULES-11739-rhel-10-support

Conversation

@SugatD
Copy link
Copy Markdown
Contributor

@SugatD SugatD commented May 19, 2026

Summary

  • Adds RedHat 10 to operatingsystem_support in metadata.json so puppetlabs-apache declares RHEL 10 support.
  • Uses epel 6.x on RHEL 10 acceptance nodes (spec/spec_helper_acceptance_local.rb) since earlier EPEL releases do not ship for RHEL 10.
  • Marks apache::mod::itk, apache::mod::php, and apache::mod::security as unsupported on RHEL 10 — the underlying packages are not shipped by RHEL 10 base repos.

Notes on dependencies (now satisfied upstream, no Gemfile/metadata change needed in this PR):

Jira: MODULES-11739

Test plan

  • CI Spec job passes.
  • CI Acceptance job generates a matrix that includes RedHat-10 (and RedHat-10-arm) and provisions the node via puppet_litmus's provision_service.
  • Acceptance modules that depend on packages no longer shipped by RHEL 10 base repos (notably mod_security / mod_security_crs and mod_php) are expected to fail on RHEL 10 and will be addressed in follow-up tickets.

🤖 Generated with Claude Code

@SugatD SugatD requested review from a team, bastelfreak, ekohl and smortex as code owners May 19, 2026 12:06
Add RHEL 10 to the supported operating systems in metadata.json so
modules consuming puppetlabs-apache can declare RHEL 10 support and
litmus generates a RHEL 10 platform in the test matrix
(see puppetlabs/puppet_litmus#621).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@SugatD SugatD force-pushed the MODULES-11739-rhel-10-support branch from 0015cf6 to 7acbed5 Compare May 27, 2026 07:27
SugatD and others added 3 commits May 27, 2026 14:36
puppet/epel 5.0.0 (pinned to dodge a file() function regression in
newer 5.x releases) ships RPM-GPG-KEY-EPEL-{7,8,9} but not
RPM-GPG-KEY-EPEL-10, so `include epel` in setup_acceptance_node.pp
fails on RHEL 10 with:

  Could not find any files from epel/RPM-GPG-KEY-EPEL-10
  (modules/epel/manifests/init.pp, line: 303)

EPEL-10 support landed in puppet/epel 6.0.0 (voxpupuli/puppet-epel#173).
Bump only the RHEL 10 path to 6.0.0; keep 5.0.0 for older RedHat /
Oracle releases so the existing file() workaround stays in effect.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
RHEL 10 base repos no longer ship `httpd-itk`, `mod_php`, or
`mod_security` / `mod_security_crs`, so the corresponding acceptance
tests fail when trying to install those packages on a RHEL 10 node.

Add `RedHat: 10` to the `@note Unsupported platforms` tag on each
class so that ApacheModPlatformCompatibility (util/apache_mod_platform_support.rb)
filters the relevant specs out on RHEL 10 via the existing
`mod_supported_on_platform?` mechanism, mirroring how `RedHat: 9`
already skips `mod_php` and how `RedHat: 8, 9` skip `mod_itk`.

This also auto-skips the `vhost_spec.rb` "parameter tests" block,
which is already gated on `mod_supported_on_platform?('apache::mod::itk')`.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@SugatD SugatD force-pushed the MODULES-11739-rhel-10-support branch from 7acbed5 to f1d6df9 Compare May 27, 2026 09:06
So apache::mod::php fails cleanly on RHEL 10 via the existing guard
instead of attempting a nonexistent PHP 5 package install, matching
the @note and the RHEL 9 precedent.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.

1 participant