Chef can be installed on a variety of operating systems via Rubygems.
In general, you will need to
We recommend installing Ruby and dependencies other than Rubygems using a method common for your operating system.
Ubuntu or Debian Example
Below we give an example that works on Ubuntu or Debian. Alter this command to the equivalent command on your system. Check the Installation Notes section for tips relevant to your platform.
Install Ruby and other Dependencies
Chef is written in Ruby and thus requires Ruby as well as other system dependencies to run. Run the following command to install ruby and other required dependencies:
Install RubyGems from Source
We prefer to install RubyGems from source rather than use the OS-provided version (if any), as it is cross platform, so we know what to expect.
Install Chef Gem
To install Chef and its dependencies, run the following code:
If you are installing Chef to use chef-client, proceed below. If you are installing Chef-solo as a means of installing Chef Server, return to Installing Chef Server using Chef Solo. If you wish to use Chef-solo as your primary Chef client, see Chef Solo.
The initial configuration of a chef-client requires a
Chef client has a number of configuration settings that do not appear above. See Chef Configuration Settings for further details.
You'll need Rubygems >= 1.3.0, which isn't in the version of ports that ships with 7.1-RELEASE, so upgrade ports first.
Install Ruby and Rubygems
These instructions have been verified to work with the following versions of OpenBSD, though they may work with older versions.
This assumes that you have done a base install and have installed the compXY.tgz (i.e. comp51.tgz for OpenBSD 5.1) compiler file set during the installation. If you haven't, please see Adding a file set after install in the OpenBSD FAQ.
You will want to add the following to the ~/.profile of the root user or a user capable of running pkg_add(1) as root:
You may wish to change the location of the PKG_PATH to a mirror closer to your location. Once set, either source the new .profile or logout and login again.
The following will install ruby, rubygems, and ruby-iconv.
You will want to make the installed binaries the default for your installation:
Installing Chef using Ebuilds
You will need to set some package.keywords, then simply emerge the Chef client.
You may start using
From Download Ruby: