compact_resource required for bootstrap chef_solo installation
quike opened this issue · comments
Hi,
Please update the https://github.com/chef-cookbooks/chef-server#bootstrap-chef-server-with-chef-solo guide with required missing cookbook compact_resource. Installation fails without it.
Cookbook version
v5.1.0
Chef-client version
[vagrant@localhost ~]$ chef-client -v
Chef: 12.14.60
Platform Details
Centos 7 using Atlas box centos/7 (vagrant init centos/7)
Scenario:
Trying to install chef-server cookbook following the installation methods. The guide shows some dependencies to be installed, but required compat_resource cookbook is missing.
# pull down dependency cookbooks
for dep in chef-ingredient yum-chef yum apt-chef apt packagecloud
do
wget -qO- https://supermarket.chef.io/cookbooks/${dep}/download | sudo tar xvzC /var/chef/cookbooks
done
Steps to Reproduce:
Follow the Bootstrap Chef (server) with Chef (solo) install method
Expected Result:
Chef Server up and running.
...
* chef_ingredient[chef-server] action reconfigure
* chef_ingredient_ingredient_config[chef-server] action render
* directory[/etc/opscode] action create (up to date)
* file[/etc/opscode/chef-server.rb] action create (up to date)
(up to date)
* execute[chef-server-core-reconfigure] action run
- execute chef-server-ctl reconfigure
[2016-09-18T15:23:36+00:00] WARN: Skipping final node save because override_runlist was given
Running handlers:
Running handlers complete
Chef Client finished, 9/15 resources updated in 06 minutes 18 seconds
Actual Result:
[vagrant@localhost ~]$ sudo chef-solo -o 'recipe[chef-server::default]'
[2016-09-18T15:15:34+00:00] WARN: *****************************************
[2016-09-18T15:15:34+00:00] WARN: Did not find config file: /etc/chef/solo.rb, using command line options.
[2016-09-18T15:15:34+00:00] WARN: *****************************************
[2016-09-18T15:15:34+00:00] WARN: *****************************************
[2016-09-18T15:15:34+00:00] WARN: Did not find config file: /etc/chef/client.rb, using command line options.
[2016-09-18T15:15:34+00:00] WARN: *****************************************
Starting Chef Client, version 12.14.60
[2016-09-18T15:15:35+00:00] WARN: Run List override has been provided.
[2016-09-18T15:15:35+00:00] WARN: Original Run List: []
[2016-09-18T15:15:35+00:00] WARN: Overridden Run List: [recipe[chef-server::default]]
resolving cookbooks for run list: ["chef-server::default"]
================================================================================
Error Resolving Cookbooks for Run List:
================================================================================
Missing Cookbooks:
------------------
No such cookbook: compat_resource
Expanded Run List:
------------------
* chef-server::default
Platform:
---------
x86_64-linux
Running handlers:
[2016-09-18T15:15:35+00:00] ERROR: Running exception handlers
Running handlers complete
[2016-09-18T15:15:35+00:00] ERROR: Exception handlers complete
Chef Client failed. 0 resources updated in 01 seconds
[2016-09-18T15:15:35+00:00] FATAL: Stacktrace dumped to /etc/chef/local-mode-cache/cache/chef-stacktrace.out
[2016-09-18T15:15:35+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2016-09-18T15:15:35+00:00] ERROR: 412 "Precondition Failed"
[2016-09-18T15:15:35+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
Hey,
I run into this problem as well. I have created a PR(#127) to update the readme
Fixed in master