Я пытался установить несколько раз Foreman на моем сервере Ubuntu 14.04. Foreman 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 запустился успешно, и веб-интерфейс мастера стал доступным.
Я следил за документами бригадира и пытался: марионеточный агент --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,очистите весь каталог SSL вашего Puppet на хосте Foreman и полностью восстановите свои сертификаты.
Также убедитесь, что ваш файл / etc / hosts имеет правильно отформатированную запись для вашего хоста. Старые инсталляции Foreman раньше жаловались на это, и это не повредит. Я определенно поклонник неограниченной продолжительности аренды и фиксированного резервирования для Foreman, если вам нужно использовать DHCP в вашей среде.
10.0.0.2 foreman1.production.example.com foreman1
Как только это будет сделано, это конкретное ошибка должна быть устранена.