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

gpgkey applied on every run due to output change #125

Closed
towo opened this issue Nov 14, 2018 · 0 comments · Fixed by #126
Closed

gpgkey applied on every run due to output change #125

towo opened this issue Nov 14, 2018 · 0 comments · Fixed by #126

Comments

@towo
Copy link
Member

towo commented Nov 14, 2018

Affected Puppet, Ruby, OS and module versions/distributions

  • Module version: <= 3.1.1
  • GPG version: >= 2.2 (assumption)

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

yum::gpgkey { "/etc/pki/rpm-gpg/${keyname}.key":
  ensure => present,
  source => $keyfile,
}

What are you seeing

Resource being reapplied ad infinitum, due to GPG 2.2 (or a version between 2.0.9 and 2.2.5 inclusively) having a different return format for gpg $file.

What behaviour did you expect instead

Applied once.

Output log

hawking:~ # puppet agent --test
[...]
Notice: /Stage[main]/Profile::Base::Yum/Yum::Gpgkey[/etc/pki/rpm-gpg/Puppet.key]/Exec[rpm-import-/etc/pki/rpm-gpg/Puppet.key]/returns: executed successfully
[...]
Notice: Applied catalog in 4.70 seconds
hawking:~ # puppet agent --test
[...]
Notice: /Stage[main]/Profile::Base::Yum/Yum::Gpgkey[/etc/pki/rpm-gpg/Puppet.key]/Exec[rpm-import-/etc/pki/rpm-gpg/Puppet.key]/returns: executed successfully
[...]
Notice: Applied catalog in 4.76 seconds

Any additional information you'd like to impart

PR incoming after this issue.

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