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

Feature Request: Allow to specify multiple gpgkeys in yum::repos in hiera #199

Open
fetzerms opened this issue Mar 25, 2021 · 0 comments
Open

Comments

@fetzerms
Copy link

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 6.19.1
  • Ruby: Bundles with puppet agent: 2.5.8p224
  • Distribution: RHEL7
  • Module version: 4.1.0

How to reproduce (e.g Puppet code you use)

It is possible to specify multiple GPG keys for a single repo, so packages can be signed with either key.
For example, this happens for the recent official puppetlabs repositories. So two gpg keys need to be
added to the repo configuration in /etc/yum/repos.d/

What we have now:

yum::repos:
  puppet6:
    ensure: 'present'
    enabled: true
    descr: 'Puppet 6 Repository el 7 - $basearch'
    baseurl: 'ourrepohosthere/rpm/puppet6/el/7/$basearch'
    gpgkey: 'file:///etc/pki/rpm-gpg/RPM-GPG-KEY-puppet6-release'
    gpgcheck: false

What are you seeing

I see, that I can only specify a single key for gpgkey.

What behaviour did you expect instead

What we need:

yum::repos:
  puppet6:
    ensure: 'present'
    enabled: true
    descr: 'Puppet 6 Repository el 7 - $basearch'
    baseurl: 'ourrepohosthere/rpm/puppet6/el/7/$basearch'
    gpgkey: 
      - 'file:///etc/pki/rpm-gpg/RPM-GPG-KEY-puppet6-release'
      - 'file:///etc/pki/rpm-gpg/RPM-GPG-KEY-2025-04-06-puppet-release'
    gpgcheck: false

Output log

n/a

@fetzerms fetzerms changed the title Feature Request: Allow to specify multiple gpgkeys in yum::repos Feature Request: Allow to specify multiple gpgkeys in yum::repos in hiera Mar 25, 2021
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

No branches or pull requests

1 participant