This repository tests community Puppet modules, primarily from Vox Pupuli, for compatibility with Puppet Core 8 and 9. Each module's own unit tests, and its acceptance tests where it has them, run nightly against the latest released Puppet Core versions.
Any community module published on the Puppet Forge can be requested, provided it has tests the harness can execute (see Request a module).
The project uses external harness and GitHub Actions, running the module's own test suite, without requiring source changes in the tested module. Puppet Core and Perforce Facter are injected into the tests to validate compatibility against the latest released Puppet Core versions.
Results can be viewed in the Actions tab.
Open a module request with the module's GitHub repository and Puppet Forge page. That's all we need from you.
Requirements
The module must have tests in its repository, and the harness must be able to execute at least some of them. Modules with no tests can't be assessed, so they can't be added.
What happens next
- Requests are handled on a best-effort basis. Maintainers review them weekly, weighing the impact and effort of each one and deciding whether it fits within the harness's existing capabilities. They then inspect the module (its tests, any acceptance-test prerequisites, and its declared Puppet version support) and add it to the harness.
- Once added, the module is tested in the next nightly run (02:00 UTC).
- Results appear in STATUS.md. Fully passing modules are listed in KNOWN_COMPATIBLE.md.
What gets tested
- The module's own unit tests, run with the module's source unchanged, against the latest Puppet Core 8 and 9 releases.
- The module's acceptance tests, when it has them and the harness can run them. These run in Docker, or in a VM for modules that need systemd or SELinux. Some acceptance suites can't be run here (for example, ones that need multiple cooperating hosts). Those modules show as partially covered and aren't listed as fully compatible.
- A module that doesn't declare a Puppet version requirement in
metadata.jsonis still tested. A missing requirement shows as a warning, not a failure.
Possible outcomes: compatible, compatible with warnings, or incompatible. Incompatible modules are recorded in KNOWN_INCOMPATIBLE.md. Being deprecated or unmaintained doesn't make a module incompatible.
Some modules are no longer maintained or are incompatible with Puppet Core:
- Deprecated/archived modules: KNOWN_DEPRECATED.md
- Tested incompatibilities: KNOWN_INCOMPATIBLE.md
- Ruby CLI runner:
bin/puppet-module-tester - Module intake from
config/modules.json - Compatibility profiles from
profiles/puppet_profiles.json - Preflight checks:
- clone module repo/ref
- discover capabilities (
Gemfile,Rakefile,spec/, acceptance assets) - evaluate
metadata.jsonPuppet requirement vs target profile - detect dependency solver incompatibilities during bootstrap and log them as warnings
- enforce auth requirement for private artifact mode
- Execution adapters:
- PDK-first:
pdk validate,pdk test unit - fallback Rake:
bundle exec rake validate/spec/testwhen available - optional acceptance stage (
--allow-acceptance)
- PDK-first:
- Outputs:
- JSON report:
results/.../compatibility-report.json - Markdown summary:
results/.../compatibility-summary.md - Stage logs per module:
results/.../artifacts/<module>/.stage-*.log - Per-module dependency status/message (
dependency_status,dependency_message) in JSON report
- JSON report:
- GitHub Actions workflow with module matrix, one per Puppet major:
.github/workflows/compatibility-runner-puppet8.yml,.github/workflows/compatibility-runner-puppet9.yml
-
Install Ruby matching the profile you'll run (3.2.x for
8-*profiles, >= 3.4 for9-*profiles — seeprofiles/puppet_profiles.json'sruby_versionfield) and Bundler. -
From repo root:
bundle install -
Run:
ruby bin/puppet-module-tester --modules-file config/modules.json --profiles-file profiles/puppet_profiles.json --profile 8-latest-maintained --metadata-mode warn --workspace-dir workspace --output-dir results/local -
Review reports in
results/local.
Edit config/modules.json:
For full instructions on adding modules and validating modules.json against schema, see CONTRIBUTING.md.
{
"modules": [
{
"repo": "https://github.com/voxpupuli/puppet-windows_firewall",
"ref": "master"
}
]
}Edit profiles/puppet_profiles.json to pin Puppet/Ruby and artifact mode.
gem_source_mode=privaterequiresPUPPET_CORE_API_KEYpuppet_core_versionandfacter_versionare pinned per profile for strict Puppet Core validationmetadata_mode=warnkeeps metadata mismatches as warnings (phase-1 policy)
This project assumes Puppet Core artifacts may require authenticated access.
In your GitHub repository, go to Settings → Secrets and variables → Actions → New repository secret and create:
PUPPET_CORE_API_KEY
API key/token for your Puppet account that has access to Puppet Core artifacts.
No additional secret is required for source URL by default. The runner/workflow defaults to:
PUPPET_CORE_SOURCE_URL=https://rubygems-puppetcore.puppet.com
Authentication model (from Puppet gem installation guidance):
- Username:
forge-key - Password: your Forge API key
The runner sets Bundler credentials using:
BUNDLE_RUBYGEMS___PUPPETCORE__PUPPET__COM=forge-key:<PUPPET_CORE_API_KEY>
Split-source behavior (default):
- Community/Vox test gems are resolved from
https://rubygems.org puppetandfacterare pinned and resolved fromhttps://rubygems-puppetcore.puppet.com- This allows Vox test harness gems while still enforcing Puppet Core runtime gems
Workflow files, one self-contained caller per Puppet major:
.github/workflows/compatibility-runner-puppet8.yml and
.github/workflows/compatibility-runner-puppet9.yml. They take the same inputs
and run the same pipeline; only the default profile differs.
- Trigger: Actions → Puppet Core 8 Compatibility (or Puppet Core 9 Compatibility) → Run workflow
- Inputs:
profile(default8-latest-maintained/9-latest-maintained)metadata_mode(warnorfail, defaultwarn)modules_json(optional JSON array override)
Example modules_json input:
[{"repo":"https://github.com/voxpupuli/puppet-windows_firewall","ref":"main"}]
Use these env vars in your GitHub Actions workflow jobs:
PUPPET_CORE_API_KEY(required)PUPPET_CORE_SOURCE_URL(optional override; defaults tohttps://rubygems-puppetcore.puppet.com)PUPPET_COMPAT_METADATA_MODE(recommended): set towarnfor phase 1
Optional manual debug variables (normally not required because runner sets them):
USERNAME=forge-keyPASSWORD=<PUPPET_CORE_API_KEY>BUNDLE_RUBYGEMS___PUPPETCORE__PUPPET__COM=forge-key:<PUPPET_CORE_API_KEY>
If testing auth manually outside the runner, Puppet docs recommend Bundler config like:
bundle config set --global https://rubygems-puppetcore.puppet.com "$USERNAME:$PASSWORD"
Strict enforcement flags (all optional, default shown):
PUPPET_ENFORCE_PRIVATE_SOURCE=truePUPPET_ENFORCE_NO_OPENVOX=false(set true only if you explicitly want to fail whenopenvoxappears)PUPPET_ENFORCE_EXACT_PUPPET_VERSION=truePUPPET_REQUIRED_PDK_VERSION(unset by default; set to a prefix like3.6to require and verify PDK version)PUPPET_SPLIT_SOURCES=true
Recommended defaults for this POC:
PUPPET_COMPAT_METADATA_MODE=warnPUPPET_COMPAT_TARGET=8-latest-maintainedPUPPET_ENFORCE_PRIVATE_SOURCE=truePUPPET_ENFORCE_NO_OPENVOX=falsePUPPET_ENFORCE_EXACT_PUPPET_VERSION=truePUPPET_SPLIT_SOURCES=true
- Puppet Core source priority: community-accessible source usable by users who accepted EULA terms and have an API key.
- Secret storage: GitHub Actions repository secrets.
- Metadata mismatch handling: warning only (does not hard fail phase-1 compatibility).
- Dependency solver incompatibility handling: warning + automatic retry with Puppet Core-oriented Gemfile constraints in the cloned workspace checkout.
- Do not commit tokens to the repo.
- Do not print secrets in logs; mask values in workflow output.
- Keep Puppet target versions aligned with maintained releases from Puppet lifecycle guidance on help.puppet.com.
- The runner exits with a non-zero status when any module result is
harness_error, so CI correctly fails (red) on harness/auth/bootstrap issues.
After secrets are configured, run the GitHub Actions workflow and review uploaded artifacts per module matrix entry.