-
-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix broken apt::source declaration for Debian-based systems #142
Conversation
Looks like tests need to be updated as well. |
The key is still (again?) available on keyserver.ubuntu.com, see http://keyserver.ubuntu.com/pks/lookup?search=packages%40gitlab.com&fingerprint=on&op=index The original key expired on 2022-03-02T15:16:59Z but GitLab refreshed the key the same day at 2022-03-02T17:21:45Z. This is fine for manual key management (and documented) but requires a bit more effort in config management. Fortunately the maintainers of IMHO |
manifests/repo.pp
Outdated
@@ -16,6 +16,7 @@ | |||
repos => 'main', | |||
key => { | |||
'id' => 'F6403F6544A38863DAA0B6E03F01618A51312F3F', | |||
'source' => 'https://packages.gitlab.com/gpg.key', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
my preference, but that would be a breaking change: configure only source, and not server.
Just my 2cents for whoever is still encountering this issue. This branch would indeed fix the Apt key issue source. Today it's still not available on the default keyserver (keyserver.ubuntu.com) . However it should be noted that the injection of apt keys with apt-key add is deprecated in favor of "signed-by" mechanism. I'd say the "clean fix/workaround" is either to :
References: |
0b2c246
to
6170f7d
Compare
I think this is a valid workaround until puppetlabs/apt is improved. |
Clone of #129
Pull Request (PR) description
This PR adds Gitlab's Apt sigining key directly from the source instead of relying on keyserver.ubuntu.com (which currently doesn't seem to provide the key when running
/usr/bin/apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F6403F6544A38863DAA0B6E03F01618A51312F3F
which is what this module attempts to do on Debian-based systems.).
This Pull Request (PR) fixes the following issues
#128 and closes #129