2013-08-26 72 views
2

檢索目錄運行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證書與混亂,所以我把它清理掉主,然後使用autosign (壞我知道!)我運行sudo puppet agent -t重新生成SSL證書,但也拋出了這個錯誤。讓我知道如果你需要更多的信息,我還沒有太多的刪除木偶的這個方面。

回答

4

最有可能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