从主机运行 sudo puppet agent -t
:host.internaltest.com
错误:无法从远程服务器检索目录:服务器上出现错误 400:节点 host.internaltest.com 上存在类型和标题为 Host[host.internaltest.com] 的另一个本地或导入资源
这台机器的 ssl 证书被弄乱了,所以我把它从主机上清除了,然后使用自动签名(我知道很糟糕!)我运行了 sudo puppet agent -t
重新生成了 ssl 证书,但也抛出了这个错误。如果您需要更多信息,请告诉我,我没有过多删除 puppet 的这一方面。
最佳答案
puppetmaster
很可能在内存中有这个证书。您需要在客户端和主服务器上清理证书
#On client machine do this assuming puppet libdir = /var/lib/puppet
rm -rf /var/lib/puppet/ssl/*/*.pem
#On the puppet-master
puppet cert clean host.internaltest.com
# Restart puppet-master
/sbin/service puppetmasterd restart
# If you are using puppet-master behind passenger, you may need to restart httpd
/sbin/service httpd restart
# then run puppet agent on the client to regenerate the cert
关于ssl - Puppet:无法从远程服务器检索目录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18451093/