In addition to capturing the minimal steps required to install a Chef 10 Server on Ubuntu, I also wanted to capture the steps for CentOS. Unfortunately, Ruby 1.9 isn’t available in the default distribution repositories, and almost all third party repositories are quite out of date. As such, I’ll use the Ruby 1.8.7 that comes with CentOS, despite being an EOL version of Ruby.
Similar steps are also available on the Chef wiki, too.
This does not include any customization to the installation and takes everything as default. This will all change when Chef 11 is released.
These steps were performed on a default server install of CentOS 6.3.
Install required packages.
The config file should look like this:
1 2 3
Run chef-solo with the
The WebUI is not enabled by default. This can be done by setting an
attribute, see the
chef-server cookbook for more information.
Next, create a new API client that will be used to upload cookbooks.
chef_server_url to use the FQDN or IP address of the Chef
Server. Change the path for the validation key. The
file should look something like this:
1 2 3 4 5 6 7 8 9
Copy the validation key (
/etc/chef/validation.pem) to the
Verify that the API client and configuration file work.
1 2 3 4
The newly created API client should be listed. Mine is
Now the Chef Server is ready to use.