feat(puppetcore): Add puppetcore gem source switch capability #282
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.
Overview
This PR introduces puppetcore gem source integration to the provision module. When
PUPPET_FORGE_TOKEN
environment variable is set, the module will use authenticated puppetcore gem sources; otherwise, it will default to public gem sources. This implementation follows the "switch" design pattern to ensure all modules work correctly regardless of whether puppetcore is used or not.Changes
Gemfile
: Implemented conditional logic to use puppetcore gem source whenPUPPET_FORGE_TOKEN
is setci.yml
workflow: Updated to use Ruby 3.1+ which is required for puppetcore gems. This workflow "uses" the shared cat-github-actions workflow that was updated in this PR: Add PuppetCore gem source support to module_ci workflow cat-github-actions#129metadata.json
: Updated Puppet version requirement to 8.0.0+ to align with puppetcorespec/integration/puppetcore_spec.rb
: Added integration tests to verify correct gem sources are used