可能的解决方案1:
使用puppet cert clean
的木偶大师是正确的方式。但是,由于出现错误,因此证书库存可能不正确。
尝试重新盘点然后清理:
$ puppet cert reinventory
$ puppet cert clean --all
注意:我的示例使用该--all
标志,它将清除所有已签名和未签名的证书。另外,请注意,应在运行之前停止Puppet主服务器reinventory
。
资料来源:http : //docs.puppetlabs.com/references/3.6.2/man/cert.html
可能的解决方案2:
$ puppet cert sign wrong.host.name
Notice: Signed certificate request for wrong.host.name
Notice: Removing file Puppet::SSL::CertificateRequest wrong.host.name at '/var/lib/puppet/ssl/ca/requests/wrong.host.name.pem'
$ puppet cert clean wrong.host.name
Notice: Revoked certificate with serial 87
Notice: Removing file Puppet::SSL::Certificate wrong.host.name at '/var/lib/puppet/ssl/ca/signed/wrong.host.name.pem'
Notice: Removing file Puppet::SSL::Certificate wrong.host.name at '/var/lib/puppet/ssl/certs/wrong.host.name.pem'
可能的解决方案3:
第一:在服务器上
$ puppet cert --revoke wrong.host.name
$ puppet cert --clean wrong.host.name
第二:关于客户
$ rm -rf /usr/lib/puppet/ssl
$ puppet agent --server [puppetmaster domain name] --waitforcert 60
第三:在服务器上(根据需要进行调整)
$ puppet cert --list (you should see your host)
$ puppet cert --sign wrong.host.name
另外,请仔细检查您的客户端是否可以访问您的[puppetmaster域名]。
资料来源:https : //serverfault.com/questions/574976/puppet-trying-to-configure-puppet-client-for-first-use-but-got-some-problems-wi