Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Example chef-repo built during training at Ravel. Uses spiceweasel to build out the repository.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 cookbooks
Octocat-spinner-32 data_bags
Octocat-spinner-32 environments
Octocat-spinner-32 roles
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.md
Octocat-spinner-32 chefignore
Octocat-spinner-32 infrastructure.yml
README.md

Overview

Every Chef installation needs a Chef Repository. This one was created during public training hosted at Ravel.

Spiceweasel

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

spiceweasel infrastructure.yml

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.

Repository Directories

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 spiceweasel infrastructure.yml.
  • data_bags/ - Store data bags and items in .json in the repository. There is a users directory and an mray.json example for use with the users cookbook.
  • roles/ - Store roles in .rb or .json in the repository. There is a base.rb base role that has the run list and settings for using the sudo cookbook.

Configuration

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.

http://help.opscode.com/faqs/chefbasics/knife

Something went wrong with that request. Please try again.