-
Notifications
You must be signed in to change notification settings - Fork 193
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
(MODULES-4521) Use local copy of Puppet GPG keys #216
Conversation
Previously it would use invalid arguments to beaker-hostgenerator.
@MikaelSmith Have you run this through a frankenbuild for PE? |
No, only FOSS beaker tests. Can you run one? |
I guess I can, just have to remember how. |
Testing with |
|
manifests/osfamily/debian.pp
Outdated
@@ -79,17 +79,42 @@ | |||
} | |||
} | |||
|
|||
$legacy_keyname = 'DEB-GPG-KEY-puppetlabs' |
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.
@underscorgan mind giving this a once-over to see if it's sane?
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.
👍 from me on this. QA will be happy to have this fix!
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.
The DEB-GPG-KEY-puppet(labs) and RPM-GPG-KEY-puppet(labs) have the same contents, can we have them in the module as GPG-KEY-puppet(labs) and then set the target correctly in the file resource rather than duplicating the files?
Yeah, I'll update that. |
Relying on the external GPG servers for getting GPG keys causes intermittent test failures, and could also be an issue at sites that limit network access. Mirroring the RedHat approach, include copies of our GPG keys in the module and install them.
b10cc77
to
1966e73
Compare
$keyname = 'RPM-GPG-KEY-puppet' | ||
$gpg_path = "/etc/pki/rpm-gpg/${keyname}" | ||
$legacy_keyname = 'GPG-KEY-puppetlabs' | ||
$legacy_gpg_path = "/etc/pki/rpm-gpg/RPM-${legacy_keyname}" |
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.
I'm preserving the path here so that we don't write another copy for people who are already using this module.
Both FOSS beaker runs passed.
|
Rerun on frankenbuilder also passed
|
CLA signed by all contributors. |
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.
👍 🥇
Thank you so much for this one @MikaelSmith !!!
Relying on the external GPG servers for getting GPG keys causes
intermittent test failures, and could also be an issue at sites that
limit network access. Mirroring the RedHat approach, include copies of
our GPG keys in the module and install them.