Puppet: 无法从远程服务器检索目录

3

从主机host.internaltest.com运行sudo puppet agent -t

错误:无法从远程服务器检索目录:SERVER上的错误400:在节点host.internaltest.com上存在另一个本地或导入的类型和标题为Host [host.internaltest.com]的资源

这台机器的ssl证书出了问题,所以我将其从主节点清除,然后使用autosign(坏坏的我知道!)运行了sudo puppet agent -t,它重新生成了ssl证书,但也引发了此错误。 如果需要更多信息,请告诉我,我对puppet的这个方面不太熟悉。

2个回答

6

很可能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

2
如果使用stunnel并全局设置http_proxy,当它被重定向到错误的端点时,将会出现这个错误。翻译为:使用stunnel并全局设置http_proxy,如果重定向到错误的端点,就会出现此错误。"Original Answer"翻译成"原始答案"。

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接