Skip to content

Support key and pin parameters for deb822 sources - #1301

Open
bwitt wants to merge 1 commit into
puppetlabs:mainfrom
bwitt:deb822-key-pin
Open

bwitt wants to merge 1 commit into
puppetlabs:mainfrom
bwitt:deb822-key-pin

Conversation

@bwitt

@bwitt bwitt commented Oct 11, 2026 •

Copy link
Copy Markdown

Summary

Allow apt::source with source_format => 'sources' to accept key and pin, just like list.
Moved the code up so it is used by both.
If pin is a string or int, applies to the first source.

Add tests + acceptance test, and an example.

Additional Context

Add any additional context about the problem here.

  • Root cause and the steps to reproduce. (If applicable)
  • Thought process behind the implementation. -> mimic list support (in fact use the same code as much as possible)

Related Issues (if any)

Fixes #1300

Checklist

  • 🟢 Spec tests.
  • 🟢 Acceptance tests.
  • Manually verified. (For example puppet apply)

@bwitt
bwitt requested review from a team, bastelfreak and smortex as code owners October 11, 2026 01:52
smortex
smortex previously approved these changes Oct 11, 2026

@smortex smortex left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That looks reasonable.

I would love to see some CI that prove that after moving these code blockes there is no impact on existing test cases, but CI is broken when your PR comes from a third party repository 😠. We will have to wait for Perfoce to do the actual testing…

Comment thread manifests/source.pp Outdated
@bwitt

bwitt commented Oct 11, 2026

Copy link
Copy Markdown
Author

thanks!

Signed-off-by: Brian Witt <brianwitt@gmail.com>
@jst-cyr

jst-cyr commented Oct 16, 2026

Copy link
Copy Markdown
Member

Thanks for the PR @bwitt ! I did a rebase to get this updated and will launch the acceptance tests so we can get some extra feedback. Basic unit tests look good.

@jst-cyr

jst-cyr commented Oct 16, 2026

Copy link
Copy Markdown
Member

Running CI tests for this PR in #1312

@jst-cyr

jst-cyr commented Oct 16, 2026

Copy link
Copy Markdown
Member

Acceptance Test Results: https://github.com/puppetlabs/puppetlabs-apt/actions/runs/38841363561?pr=1312

Full green on acceptance tests! Ready for review by engineering when available.

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.

Apt::Source with sources deb822 format cant use key and pin

3 participants