![CentOS7 - Chef(开源)设置错误](https://linux22.com/image/655421/CentOS7%20-%20Chef%EF%BC%88%E5%BC%80%E6%BA%90%EF%BC%89%E8%AE%BE%E7%BD%AE%E9%94%99%E8%AF%AF.png)
目前正在努力在 CentOS7 上设置 chef-server。chef-admin 似乎运行良好。
我“(1)sudo wgethttps://opscode-omnibus-packages.s3.amazonaws.com/el/6/x86_64/chef-server-11.1.3-1.el6.x86_64.rpm和(2)sudo rpm -Uvh chef-server-11.1.3-1.el6.x86_64.rpm”按照我一直做的标准程序。
这些运行顺利,但在“sudo chef-server-ctl reconfigure”
收到以下输出错误。我确认已安装 openSSL 和“build-essential”。
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)
$
谢谢。
答案1
http://wiki.centos.org/Download是你的朋友。Chef 不会在 7 上工作。
偶尔保留旧版本是一种很好的做法,以防软件包无法升级到 7 或任何其他新版本。