Repository navigation
(MODULES-12044) Add Puppet Core 9 support - #99
Conversation
- Raise the puppet requirement upper bound to < 10.0.0 - Move from the pdk-default 2.7.4 template to pdk-templates main (PDK 3.0.1): puppetcore gem source, Ruby 3.4-capable tooling (puppetlabs_spec_helper 9, rubocop 1.73) and YAML.safe_load_file in spec_helper - Regenerate .rubocop_todo.yml for the newer rubocop/rubocop-rspec cops rather than reformatting existing code in a compatibility change - CI: drop the retired ubuntu-20.04 nightly runner, pin the matrix setup to Ruby 3.2 and install libcurl headers for the Puppet 9 lane, as in the other Puppet 9 module updates (MODULES-11703) - Remove obsolete Travis, AppVeyor and GitLab CI configs - Update the README requirements line Unit specs (113 examples) pass on Puppet 8.19.0 / Ruby 3.2.8 and on Puppet 9.1.4 / Ruby 3.4.7; syntax, lint, metadata_lint, check:* and rubocop pass on both. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
CI note: the only failure is |
|
@joshcooper As a puppetlabs org admin, could you please give this repo access to the secrets the shared module CI needs? Right now CI can't get past What's failing: Requested:
Once that's in place I'll re-run CI on this PR. Thanks! |
|
@span786 I added |
|
@joshcooper Thanks for adding the secret. CI is now green on Puppet 8 / Ruby 3.2 and Puppet 9 / Ruby 4. Branch protection still needs an approving review before this can merge. Could you (or someone on @puppetlabs/modules) leave one? I'll do a manual smoke test on a PE primary with a Puppet Core 9 agent before cutting the release. |
| # puppet_litmus -> bolt 4.x -> faraday-patron -> patron builds a libcurl native extension; | ||
| # the runner has no libcurl headers, so install them before bundle (Puppet 9 lane). | ||
| additional_packages: "libcurl4-openssl-dev" | ||
| ruby_version: "3.2" |
There was a problem hiding this comment.
This is a no-op: module_ci.yml already defaults ruby_version to '3.2', and the input only drives the setup-matrix job. Spec jobs take Ruby from the matrix, which is why the Puppet 9 lane ran on Ruby 4. Suggest dropping it here and in nightly.yml / mend.yml, and trimming the comment above so it only explains additional_packages.
| # puppet_litmus -> bolt 4.x -> faraday-patron -> patron builds a libcurl native extension; | ||
| # the runner has no libcurl headers, so install them before bundle (Puppet 9 lane). | ||
| additional_packages: "libcurl4-openssl-dev" | ||
| ruby_version: "3.2" |
There was a problem hiding this comment.
Same as in ci.yml: ruby_version already defaults to '3.2', so this line can go.
| uses: "puppetlabs/cat-github-actions/.github/workflows/mend_ruby.yml@main" | ||
| secrets: "inherit" | ||
| with: | ||
| ruby_version: "3.2" |
There was a problem hiding this comment.
mend_ruby.yml already defaults ruby_version to '3.2', so this block isn't needed.
Summary
Adds Puppet Core 9 support. The latest release (1.1.0) declares
puppet >= 6.0.0 < 9.0.0, which blocks Puppet 9 upgrades for several enterprise customers who use this module (see PPM-2019).No module code needed changing. The
node_grouptype, both providers, the face and application, and the legacy 3.xnode_groupsfunction all pass their specs on Puppet 9.Changes
metadata.json: the Puppet requirement is now>= 6.0.0 < 10.0.0. The README requirements line is updated to match (it still said Puppet >= 3.7.1).pdk-default#2.7.4topdk-templates#main(PDK 3.0.1). This brings:puppetlabs_spec_helper9, rubocop 1.73);YAML.safe_load_fileanddeep_mergeinspec_helper..sync.ymlnow keeps.rubocop_todo.ymlinheritance and deletes the legacy CI configs..rubocop_todo.ymlfor the newer rubocop and rubocop-rspec cops. Reformatting existing code didn't belong in a compatibility PR.ubuntu-20.04runner.puppet_litmus→ bolt → patron). This is the same approach as the other Puppet 9 module updates (MODULES-11703).mendis pinned to Ruby 3.2..travis.yml,appveyor.ymland.gitlab-ci.yml.Testing
I ran the Puppet 9 lane locally against
puppet-privateandfacter-privatemain. The CI run here exercises the real puppetcore Puppet 9 gems.Not yet done: this module has no acceptance suite. Before release we need a manual smoke test on a PE primary with a Puppet Core 9 agent: create, modify and purge a
node_groupwith thehttpsprovider, pluspuppet node_managerface commands.For reviewers
>= 6.0.0, but CI now tests only Puppet 8 and 9. Should we raise it to>= 8.0.0like the other Puppet 9 module updates?operatingsystem_supportis very old (EL6, Ubuntu 10.04/12.04/14.04, SLES 11) and includes platforms with no Puppet 9 agent. Should this PR update it, or should that be a follow-up?Jira: MODULES-12044
🤖 Generated with Claude Code