Добрый день.
Решил научиться управлять конфигурациями с Chef Server.
Вот на мой взгляд не плохой
туториал, другие +- подобны, с разницей что пробовал на дебиан 6,7 и deb пакетом с оф сайта.
Умираю сразу уже на 2-м шаге. # chef-server-ctl reconfigure :)
Ошибка следующая:
# OR, Verify only connections to chef-server
verify_api_cert true
```
To check your SSL configuration, or troubleshoot errors, you can use the
`knife ssl check` command like so:
```
knife ssl check -c /opt/opscode/embedded/cookbooks/solo.rb
```
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Starting Chef Client, version 11.12.2
Compiling Cookbooks...
Recipe: private-chef::default
* directory[/etc/opscode] action create (up to date)
* directory[/etc/opscode/logrotate.d] action create (up to date)
[2014-09-14T17:03:52+04:00] WARN: Cloning resource attributes for template[/opt/opscode/embedded/service/opscode-test/bootstrapper-config/script.rb] from prior resource (CHEF-3694)
[2014-09-14T17:03:52+04:00] WARN: Previous template[/opt/opscode/embedded/service/opscode-test/bootstrapper-config/script.rb]: /opt/opscode/embedded/cookbooks/private-chef/recipes/bootstrap.rb:32:in `from_file'
[2014-09-14T17:03:52+04:00] WARN: Current template[/opt/opscode/embedded/service/opscode-test/bootstrapper-config/script.rb]: /opt/opscode/embedded/cookbooks/private-chef/recipes/bootstrap.rb:63:in `from_file'
[2014-09-14T17:03:52+04:00] WARN: Cloning resource attributes for runit_service[redis_lb] from prior resource (CHEF-3694)
[2014-09-14T17:03:52+04:00] WARN: Previous runit_service[redis_lb]: /opt/opscode/embedded/cookbooks/enterprise/definitions/component_runit_service.rb:29:in `block in from_file'
[2014-09-14T17:03:52+04:00] WARN: Current runit_service[redis_lb]: /opt/opscode/embedded/cookbooks/private-chef/recipes/redis_lb.rb:82:in `from_file'
[2014-09-14T17:03:52+04:00] WARN: Cloning resource attributes for directory[/var/opt/opscode/nginx/etc/addon.d] from prior resource (CHEF-3694)
[2014-09-14T17:03:52+04:00] WARN: Previous directory[/var/opt/opscode/nginx/etc/addon.d]: /opt/opscode/embedded/cookbooks/private-chef/recipes/oc_id.rb:139:in `from_file'
[2014-09-14T17:03:52+04:00] WARN: Current directory[/var/opt/opscode/nginx/etc/addon.d]: /opt/opscode/embedded/cookbooks/private-chef/recipes/nginx.rb:31:in `block in from_file'
Generating RSA private key, 2048 bit long modulus
................................................+++
..............................................................+++
e is 65537 (0x10001)
Converging 268 resources
* link[/usr/bin/private-chef-ctl] action create (up to date)
* link[/usr/bin/chef-server-ctl] action create (up to date)
* directory[/etc/opscode] action nothing (skipped due to action :nothing)
* directory[/etc/opscode/logrotate.d] action nothing (skipped due to action :nothing)
* log[opscode_webui deprecation notice] action write (skipped due to only_if)
Recipe: private-chef::users
* user[opscode] action create (up to date)
* group[opscode] action create (up to date)
Recipe: private-chef::default
* file[/etc/opscode/dark_launch_features.json] action create (up to date)
* file[/etc/opscode/webui_pub.pem] action create (up to date)
* file[/etc/opscode/webui_priv.pem] action create (up to date)
* file[/etc/opscode/worker-public.pem] action create (up to date)
* file[/etc/opscode/worker-private.pem] action create (up to date)
* file[/etc/opscode/pivotal.cert] action create (up to date)
* file[/etc/opscode/pivotal.pem] action create (up to date)
* directory[/etc/chef] action create (up to date)
* directory[/var/opt/opscode] action create (up to date)
* directory[/var/log/opscode] action create (up to date)
* private-chef_keepalived_safemode[warmfuzzy] action create (skipped due to only_if)
Recipe: enterprise::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)
* template[/etc/init/private-chef-runsvdir.conf] action create (up to date)
* execute[initctl status private-chef-runsvdir] action run
================================================================================
Error executing action `run` on resource 'execute[initctl status private-chef-runsvdir]'
================================================================================
Errno::ENOENT
-------------
No such file or directory - initctl status private-chef-runsvdir
Resource Declaration:
---------------------
# In /opt/opscode/embedded/cookbooks/enterprise/recipes/runit_upstart.rb
32: execute "initctl status #{project_name}-runsvdir" do
33: retries 30
34: end
35:
Compiled Resource:
------------------
# Declared in /opt/opscode/embedded/cookbooks/enterprise/recipes/runit_upstart.rb:32:in `from_file'
execute("initctl status private-chef-runsvdir") do
action "run"
retries 0
retry_delay 2
guard_interpreter :default
command "initctl status private-chef-runsvdir"
backup 5
returns 0
cookbook_name :enterprise
recipe_name "runit_upstart"
end
Running handlers:
[2014-09-14T17:04:54+04:00] ERROR: Running exception handlers
Running handlers complete
[2014-09-14T17:04:54+04:00] ERROR: Exception handlers complete
[2014-09-14T17:04:54+04:00] FATAL: Stacktrace dumped to /opt/opscode/embedded/cookbooks/cache/chef-stacktrace.out
Chef Client failed. 0 resources updated in 66.092966718 seconds
[2014-09-14T17:04:54+04:00] ERROR: execute[initctl status private-chef-runsvdir] (enterprise::runit_upstart line 32) had an error: Errno::ENOENT: No such file or directory - initctl status private-chef-runsvdir
[2014-09-14T17:04:54+04:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
Забавно что на обоих машинах ошибка идентичная.
В гугле нашёл ссылки только на stackoverflow и там писали на похожие проблемы, что это типа ошибка chef надо создавать issue.
Пробовал скачать другой более ранний deb пакет chef 11 из
туториала, там вообще сразу же умирает chef-server-ctl reconfigure, ругаясь
/opt/chef-server/embedded/bin/ruby: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by /opt/chef-server/embedded/lib/libruby.so.1.9)
Я не верю что проблема в самом пакете, я думаю у меня кривые руки.
Очень хочется довести дело до конца, помогите, пожалуйста разобраться.