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

The gpgkey key of the repos parameter should support arrays #131

Open
avidspartan1 opened this issue Feb 8, 2019 · 3 comments
Open

The gpgkey key of the repos parameter should support arrays #131

avidspartan1 opened this issue Feb 8, 2019 · 3 comments
Labels

Comments

@avidspartan1
Copy link

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 6.0.4
  • Ruby: 2.0.0
  • Distribution: RHEL 7 / CentOS 7
  • Module version: 3.1.1

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

Pass a repo in the repos parameter with a gpgkey argument that's an array.

What are you seeing

Only the first element of the array is used.

What behaviour did you expect instead

Output log

Any additional information you'd like to impart

According to the yum.conf man page, multiple GPG keys per repo are supported:

gpgkey A URL pointing to the ASCII-armored GPG key file for the repository. This option is used if yum needs a public key to verify a package and the required key hasn't been imported into the RPM database. If this option is set, yum will automatically import the key from the specified URL. You will be prompted before the key is installed unless the assumeyes option is set.

Multiple URLs may be specified here in the same manner as the baseurl option (above). If a GPG key is required to install a package from a repository, all keys specified for that repository will be installed.
@jeefberkey
Copy link

I agree.

You can work around this by using a multiline string, with each line a separate gpgkey.

@avidspartan1
Copy link
Author

That's helpful--thanks for the workaround.

@dhoppe
Copy link
Member

dhoppe commented Apr 5, 2019

You could also use the new data in module feature which also supports multiple GPG keys:

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

No branches or pull requests

3 participants