CentOS7 - Erro de configuração do Chef (open source)

1

Foi lutar com a criação de um chef-servidor no momento em CentOS7. chef-admin parece estar indo bem.

Eu "(1) sudo wget link e (2) sudo rpm -Uvh chef-server-11.1.3-1.el6.x86_64.rpm" por procedimento padrão que sempre faço.

Eles funcionaram sem problemas, mas em "sudo chef-server-ctl reconfigure"

recebendo os seguintes erros de saída. Eu verifiquei que tenho openSSL e 'build-essential' instalado.

Starting Chef Client, version 11.12.2
Compiling Cookbooks...
Recipe: chef-server::default
  * directory[/etc/chef-server] action create (up to date)
[2015-04-03T18:23:23-07:00] WARN: Cloning resource attributes for directory[/var/opt/chef-server/chef-server-webui/etc] from prior resource (CHEF-3694)
[2015-04-03T18:23:23-07:00] WARN: Previous directory[/var/opt/chef-server/chef-server-webui/etc]: /opt/chef-server/embedded/cookbooks/chef-server/recipes/chef-server-webui.rb:31:in 'block in from_file'
[2015-04-03T18:23:23-07:00] WARN: Current  directory[/var/opt/chef-server/chef-server-webui/etc]: /opt/chef-server/embedded/cookbooks/chef-server/definitions/unicorn_config.rb:21:in 'block in from_file'
Generating RSA private key, 2048 bit long modulus
..+++
.......................................+++
e is 65537 (0x10001)
Converging 212 resources
  * directory[/etc/chef-server] action nothing (skipped due to action :nothing)
Recipe: chef-server::users
  * user[chef_server] action create (up to date)
  * group[chef_server] action create (up to date)
Recipe: chef-server::default
  * directory[/etc/chef] action create (up to date)
  * directory[/var/opt/chef-server] action create (up to date)
Recipe: runit::upstart
  * execute[initctl stop opscode-runsvdir] action run (skipped due to only_if)
  * file[/etc/init/opscode-runsvdir.conf] action delete (up to date)
  * cookbook_file[/etc/init/chef-server-runsvdir.conf] action create
    * Parent directory /etc/init does not exist.
================================================================================
Error executing action 'create' on resource 'cookbook_file[/etc/init/chef-server-runsvdir.conf]'
================================================================================


Chef::Exceptions::EnclosingDirectoryDoesNotExist
Running handlers:
[2015-04-03T18:23:23-07:00] ERROR: Running exception handlers
Running handlers complete

[2015-04-03T18:23:23-07:00] ERROR: Exception handlers complete
[2015-04-03T18:23:23-07:00] FATAL: Stacktrace dumped to /opt/chef-server/embedded/cookbooks/cache/chef-stacktrace.out
Chef Client failed. 0 resources updated in 7.083390475 seconds
[2015-04-03T18:23:24-07:00] ERROR: cookbook_file[/etc/init/chef-server-runsvdir.conf] (runit::upstart line 29) had an error: Chef::Exceptions::EnclosingDirectoryDoesNotExist: Parent directory /etc/init does not exist.
[2015-04-03T18:23:24-07:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
$ 

Obrigado.

    
por SndLt 04.04.2015 / 03:33

1 resposta

0

link é seu amigo. Chef não vai trabalhar em 7.

É uma boa prática manter uma versão mais antiga de vez em quando, caso os pacotes não sejam atualizados para 7 ou qualquer outra nova versão.

    
por 10.04.2015 / 03:30

Tags