我正在尝试安装一个装有puppet的Ubuntu VM,以便可以在本地测试我们的生产设置。我无法让puppetmaster和puppet互相交谈。让我引导您完成我的步骤。(服务器hostname是格式为“ web1.xxx.xxx.net”的FQDN)。
因此,首先,我从/etc/puppet/ssl目录中清除了所有pem文件(当然,除了CA pems外),因此可以重新开始。 puppetca --list没有返回结果。
然后,我运行puppetd --test为puppetmaster生成CSR。puppetca --list现在包括我的主机名(“ web1.xxx.xxx.net”)。
然后我跑puppetca --sign web1.xxx.xxx.net。现在又puppetca --list是空的-到目前为止一切正常。
最后,我puppetd --test再次跑步。我得到以下输出:
err: Could not retrieve catalog from remote server: hostname was not match with the server certificate
warning: Not using cache on failed catalog
err: Could not retrieve catalog; skipping run
列出目录的内容将/etc/puppet/ssl显示具有正确服务器名称的PEM文件,该服务器名称与my匹配hostname。有人对如何解决此问题有任何想法吗?