CentOS7.2をアップデートしようとしたところ下記のエラーが発生しました。
Downloading packages: warning: /var/cache/yum/x86_64/7/puppetlabs-pc1/packages/puppet-agent-1.10.14-1.el7.x86_64.rpm: Header V4 RSA/SHA256 Signature, key ID ef8d349f: NOKEY Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-puppetlabs-PC1 The GPG keys listed for the "Puppet Labs PC1 Repository el 7 - x86_64" repository are already installed but they are not correct for this package. Check that the correct key URLs are configured for this repository. Failing package is: puppet-agent-1.10.14-1.el7.x86_64 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-puppetlabs-PC1
GPGの鍵でエラーとなっており、下記のコマンドを実行することで解決するようです。
$ curl -L https://yum.puppetlabs.com/RPM-GPG-KEY-puppet -o /tmp/RPM-GPG-KEY-puppet $ gpg --with-fingerprint "/tmp/RPM-GPG-KEY-puppet" $ sudo cp /tmp/RPM-GPG-KEY-puppet /etc/pki/rpm-gpg/RPM-GPG-KEY-puppetlabs-PC1
この後にyum updateコマンドを実行したところエラーが解消されました。
使用していたCentOSは一般人が配布しているVagrantのboxだったため内臓されていた秘密鍵がうまく一致しなかったのでしょう。