|
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 ExampleBelow 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 DependenciesChef 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 SourceWe 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 RubyGems Install Chef GemTo install Chef and its dependencies, run the following code: Install Chef |
|
|
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. Configure chef-clientThe 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. BootstrapOnce you know the install procedure for your platform you can create a Custom Knife Bootstrap Script template, allowing you to automate future installations of Chef using Knife. Installation Notes for Various Operating SystemsFreeBSD 7.1
Pre-Installation PlanningYou'll need Rubygems >= 1.3.0, which isn't in the version of ports that ships with 7.1-RELEASE, so upgrade ports first. Upgrading Ports Install Ruby and RubygemsMake sure you have Ruby and Rubygems installed. On FreeBSD with ports installed: Installing Ruby and Rubygems OpenBSD
Tested VersionsThese instructions have been verified to work with the following versions of OpenBSD, though they may work with older versions. OpenBSD 5.1 AssumptionsThis 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. Pre-installationYou will want to add the following to the ~/.profile of the root user or a user capable of running pkg_add(1) as root: Prepare PKG_PATH 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. Install PrerequisitesThe following will install ruby, rubygems, and ruby-iconv. Installing Ruby, Rubygems and other prerequisites You will want to make the installed binaries the default for your installation: Post-install Administrivia Gentoo
Installing Chef using EbuildsYou will need to set some package.keywords, then simply emerge the Chef client. You may start using OpenSolaris
Installing RubyFrom Download Ruby:
|
|
|



