Skip to content

(MODULES-11706) Add support for Puppet 9 - #440

Draft
shubhamshinde360 wants to merge 3 commits into
mainfrom
MODULES-11706
Draft

(MODULES-11706) Add support for Puppet 9#440
shubhamshinde360 wants to merge 3 commits into
mainfrom
MODULES-11706

Conversation

@shubhamshinde360

Copy link
Copy Markdown
Contributor

Summary

  • Add Puppet 9 (8.99.x) gem stream support to the Gemfile, including conditional voxpupuli-puppet-lint-plugins 7.x, puppetlabs_spec_helper from git main (MODULES-11700), puppet_litmus from git main (MODULES-11702), and PUPPET_GEM_SOURCE-based gem resolution.
  • Disable strict_indent, params_not_optional_with_undef, and exec_idempotency lint checks in the Rakefile that are incompatible across Puppet 8 and 9 lanes.
  • Exclude ubuntu-20.04 from the Puppet 9 acceptance matrix in the CI workflow.
  • Extend puppet version_requirement to < 10.0.0 and drop Ubuntu 18.04 from metadata.json.

Test plan

  • Verify CI passes for Puppet 7/8 lanes (no regressions)
  • Verify CI passes for Puppet 9 lane with PUPPET_GEM_VERSION set to ~> 8.99
  • Confirm ubuntu-20.04 is excluded only from the Puppet 9 acceptance matrix

🤖 Generated with Claude Code

Update Gemfile, Rakefile, CI workflow, and metadata.json to support
the Puppet 9 (8.99.x) gem stream alongside Puppet 7/8.

Gemfile changes:
- Detect the Puppet 9 stream via PUPPET_GEM_VERSION and resolve gems
  from PUPPET_GEM_SOURCE (a CI secret) or the puppetcore source.
- Use voxpupuli-puppet-lint-plugins 7.x and a temporary
  puppetlabs_spec_helper branch (MODULES-11700) that allows
  puppet-lint 5.x, required for Ruby 3.4+.
- Point puppet_litmus at the main branch to pick up the
  --collection-platform-exclude flag (MODULES-11702).

Rakefile changes:
- Disable strict_indent, params_not_optional_with_undef, and
  exec_idempotency lint checks that are incompatible across the
  Puppet 8 and 9 lanes.

CI workflow changes:
- Exclude ubuntu-20.04 from the Puppet 9 acceptance matrix.

metadata.json changes:
- Extend puppet version_requirement to < 10.0.0.
- Drop Ubuntu 18.04 from supported OS releases.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
shubhamshinde360 and others added 2 commits July 29, 2026 20:43
The Spec job in ci.yml was missing `secrets: "inherit"`, which meant
the reusable workflow did not receive repo secrets like PUPPET_GEM_SOURCE.

Co-Authored-By: Claude Opus 4.6 (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