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

Sha*_*tel 2 ssl puppet

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

err: Could not retrieve catalog from remote server: Error 400 on SERVER: Another local or imported resource exists with the type and title Host[host.internaltest.com] on node host.internaltest.com

这台机器的ssl证书被弄乱了,所以我将其从主服务器上清除掉,然后使用自动签名(很糟糕,我知道!),我运行时sudo puppet agent -t重新生成了ssl证书,但也抛出了此错误。如果您需要更多信息,请告诉我,我并没有过多地介绍人偶。

iam*_*ser 5

很有可能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
Run Code Online (Sandbox Code Playgroud)