我试图在我的Ubuntu 14.04服务器上安装Foreman serveral时间。 工头1.5和1.6总是失败,同时出现以下错误:
/usr/bin/puppet cert --generate ubuntutest.domain.com returned 23 instead of one of [0] /Stage[main]/Puppet::Server::Config/Exec[puppet_server_config-generate_ca_cert] /returns: change from notrun to 0 failed: /usr/bin/puppet cert --generate ubuntutest.domain.com returned 23 instead of one of [0] /Stage[main]/Puppet::Server::Config/Exec[puppet_server_config-generate_ca_cert]: Failed to call refresh: /usr/bin/puppet cert --generate ubuntutest.domain.com returned 23 instead of one of [0] /Stage[main]/Puppet::Server::Config/Exec[puppet_server_config-generate_ca_cert]: /usr/bin/puppet cert --generate ubuntutest.domain.com returned 23 instead of one of [0] /Stage[main]/Apache::Service/Service[httpd]: Failed to call refresh: Could not start Service[httpd]: Execution of '/etc/init.d/apache2 start' returned 1: /Stage[main]/Apache::Service/Service[httpd]: Could not start Service[httpd]: Execution of '/etc/init.d/apache2 start' returned 1: Installing Done [100%] [...............................................................................] Something went wrong! Check the log for ERROR-level output
我手工生成证书后。 apache startet成功并且工头web界面可以访问。
我跟随工头文件和尝试: puppet agent --test以下情况:
Info: Caching certificate_revocation_list for ca Warning: Unable to fetch my node definition, but the agent run will continue: Warning: Error 400 on SERVER: Failed to find ubuntutest.infraserv.com via exec: Execution of '/etc/puppet/node.rb ubuntutest.infraserv.com' returned 1: Info: Retrieving plugin Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed when searching for node ubuntutest.infraserv.com: Failed to find ubuntutest.infraserv.com via exec: Execution of '/etc/puppet/node.rb ubuntutest.infraserv.com' returned 1: Warning: Not using cache on failed catalog Error: Could not retrieve catalog; skipping run
…. 🙁
对于不是Puppetmaster的Foreman-only主机,请清除您的Foreman主机上的Puppet的整个SSL目录,并完全重新生成证书。
还要确保你的/ etc / hosts文件的主机有一个格式正确的logging。 老工头安装用来抱怨这个,它不会伤害。 如果您需要在您的环境中使用DHCP,我绝对是无限的租赁期限和Foreman固定预留的粉丝。
10.0.0.2 foreman1.production.example.com foreman1
一旦完成,这个特定的错误应该被解决。