|
This document is focused on users who wish to get the latest development version of Chef installed for testing and development, or for the latest and greatest features that haven't been officially released yet.Developers who wish to contribute to the project are encouraged to read the README.rdoc in the GitHub repository.Each released version of Chef is tagged in the Git Repository. You can work with a previous version's code by checking out the tag.
RequirementsFirst, you'll want to designate a system for development and deployment. This is the place where you'll clone the repository and create the gems. It can be your local workstation, or it can be the Chef Server itself.
When installing the gems that are built from these instructions and using the Installing Chef Server using Chef Solo on Chef Server or Chef Client systems, other dependencies are handled as well such as CouchDB, RabbitMQ and Java.
Install RubyGem Development Requirements
Install Additional Gem Building Requirements |
|
Git RepositoriesClone the Clone Git Repositories Installing the GemsWe're going to install the gems from the repositories checked out above. Each of these has gem dependencies that build on each other. This is the order which you should install the gems. In each rake install, the respective gem was generated. We recommend setting up an internal RubyGems server in your environment to host the development gems, so you don't have to copy them manually to client systems for testing. Opscode provides a gems::server recipe that will help you set up a RubyGems server. Install mixlibsOhai and Chef use some "mixin" libraries that Opscode wrote. We need to install these first or the Ohai and Chef gems will fail to build. Install mixlib components Install OhaiOhai needs to be installed as well so the Chef gems can be built. Install Ohai Install ClientFor a chef-client, just install the Install Chef Install gecodeOn Ubuntu lucid, maverick, or Debian lenny release, you can install gecode deb package from the Opscode APT repository. Add the Opscode APT RepositoryCreate /etc/apt/sources.list.d/opscode.list
If you would like to be able to download source packages, add an additional identical line, but change You can copy and paste these examples to create the necessary sources.list entry: Ubuntu for Chef 0.10.x Debian users will likely need to run 'apt-get install sudo wget lsb-release' as root before pasting the examples. Add the GPG Key and Update IndexBefore you install the packages, make sure you add the Opscode GPG key to apt.
Now, we update apt-get with the newly added Opscode repository: Installing the opscode-keyring package will keep the key up-to-date: Upgrade Existing PackagesTo ensure you are using the latest versions of libraries that chef depends on, you may wish to update your existing packages: Install deb packageBuild and Install from SourceInstall ServerIf you are not using a RubyGems server, you'll want to install the Chef Server gems. Gemcutter jeweler are also prerequisites to do a rake install for the server. So before you do the rake install for the server: Install Gemcutter Jeweler Then you can install the server: Install Chef Server Configure ChefThe Installing Chef Server Manually procedures can be used to get the server configured. If you're planning to run systems on the development version, we strongly recommend a RubyGems server with Chef and all the dependencies available to ease this process. Or, if you're using Amazon EC2, build an AMI with the gems installed.
|
|
|

2 Comments
Hide/Show CommentsDec 20, 2009
Robert J. Berger
Looks like gemcutter jeweler are also prerequisites to do a rake install for the server. Got the following message:
So before you do the rake install for the server:
Nov 27, 2010
Sebastian Boehm
As of 2010-11-27 mixlib requires 'spec/rake/spectask' in some Rakefiles, which is not available in rspec 2 anymore.
So if you get any errors about rake being unable to load that file, try installing rspec like this: