以下是我尝试在Puppet Agent上运行命令puppet agent -t
时收到的错误。当PuppetServer尝试达到PuppetDb的V3而不是V4时会发生这种情况,尽管V3已被删除,并且不应该理想地调用。不知道如何解决这个问题。
所有配置都在这里定义:http://jurjenbokma.com/ApprenticesNotes/ar27s05.xhtml
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Failed to submit 'replace facts' command for puppetmaster.test.org to PuppetDB at puppetmaster.test.org:8081: [404 ] <html><head><meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/><title>Error 404 </title></head><body><h2>HTTP ERROR: 404</h2><p>Problem accessing /v3/commands. Reason:<pre> Not Found</pre></p><hr /><i><small>Powered by Jetty://</small></i></body></html>
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
答案 0 :(得分:1)
我正在关注旧版本的教程,而对于最新版本(Puppet v4.x),我们需要使用不同的模块。 PuppetMaster和PuppetDb之间有一个接口,它负责对PuppetDb进行API调用,在它要求安装的链接中
sudo puppet resource package
puppetdb-terminus ensure=latest
使用PuppetDb的/v3
api,而对于我们需要安装的最新版本
sudo puppet resource package
的 puppetdb末端强> ensure=latest
使用PuppetDb的/v4
api ......
问题解决了!