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

Does not handle multiple keys in a source file #116

Open
linuxdan opened this issue Sep 27, 2018 · 2 comments
Open

Does not handle multiple keys in a source file #116

linuxdan opened this issue Sep 27, 2018 · 2 comments

Comments

@linuxdan
Copy link

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: PE 2018.1.4 / Puppet agent 5.5.6
  • Module version: 3.1.0

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

yum::gpgkey { '/etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release':
ensure => present,
source => 'file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release',
}

rpm -e gpg-pubkey-2fa658e0
puppet agent -t

What are you seeing

The key is NOT replaced because the manifest only looks for the first key (head -1)

What behaviour did you expect instead

All keys in the file should be checked.

@linuxdan
Copy link
Author

I will take a crack at fixing this.

@linuxdan
Copy link
Author

Can someone help me with a Ruby custom function ?
I figured out how to run the gpg command but now I need to take the output and do some string tinkering to return an array of gpg-pubkeys.
I know WHAT I want to do, just not HOW to dood it.

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

Successfully merging a pull request may close this issue.

1 participant