Skip to content
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

anyway to import gpg from url using source param in gpgkey class? #99

Open
bostrowski13 opened this issue May 14, 2018 · 2 comments
Open
Labels
enhancement New feature or request

Comments

@bostrowski13
Copy link

Don't see this documented, and from what I can tell the manifest doesn't look like it supports this, but is it possible to use the actual URL of the GPG key and import it in and use that instead of having the file already downloaded or just copy/pasting the content of it in the code? Something like...

yum::gpgkey { '/etc/pki/rpm-gpg/RPM-GPG-KEY-microsoft-azure-release':
  ensure => present,
  source => 'https://packages.microsoft.com/keys/microsoft.asc',
}
@dhoppe
Copy link
Member

dhoppe commented Apr 5, 2019

The current version of this module does not support the import of GPG keys from remote locations, but there exists an pull request:

@dhoppe dhoppe added the enhancement New feature or request label Apr 5, 2019
@TJM
Copy link

TJM commented Nov 12, 2019

It looks to me like this is supported now. You should be able to use any source that the puppet "file" resource type supports, including https.

If it is not working for whatever reason, you could just put the URL into the yumrepo gpgkey option directly. The reason to write the key locally to the filesystem would be cases where the host could not (reliably) retrieve it. We actually put the keys on our update server and point to them with URLs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants