Every Chef installation needs a Chef Repository. This one was created during public training hosted at Ravel.
This repo has an
infrastructure.yml file for use with Spiceweasel (http://bit.ly/spcwsl). To get the knife commands for deploying this infrastructure, use the command
and it will output the knife commands needed to build and deploy this basic infrastructure. The
knife ec2 server create and
knife rackspace server create commands at the end will deploy the exact configuration on 2 different cloud providers.
This repository contains several directories, and each directory contains a README file that describes what it is for in greater detail, and how to use it for managing your systems with Chef.
cookbooks/- Cookbooks you download or create. Populate it by running the commands output by
data_bags/- Store data bags and items in .json in the repository. There is a
usersdirectory and an
mray.jsonexample for use with the
roles/- Store roles in .rb or .json in the repository. There is a
base.rbbase role that has the run list and settings for using the
You will need to add the configuration directory
.chef and your
.chef/knife.rb with repository-specific configuration. If you're using the Opscode Platform, you can download one for your organization from the management console. If you're using the Open Source Chef Server, you can generate a new one with
knife configure. For more information about configuring Knife, see the Knife documentation.