Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
An assistant for chef.
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
lib
.gitignore
LICENSE
README.textile
Rakefile

README.textile

sous-chef

by Ben Burkert

DESCRIPTION:

An assistant to chef. Helps organize cookbooks for multiple nodes.

REQUIREMENTS:

  • templater >= 0.5.0

INSTALL:

$ git clone git://github.com/benburkert/sous-chef.git $ cd sous-chef $ rake install

USAGE:

From within your Rails/Merb project, run:


  $ chefify .

That should generate the basic layout in a “chef” dir:


  Generating with app generator:
       [ADDED]  config
       [ADDED]  nodes
       [ADDED]  cookbooks
       [ADDED]  config/sous-chef.yml
       [ADDED]  Rakefile

Next generate some nodes with the chef-gen command:


  $ chef-gen node beta --environment=staging --platform=ec2
  Generating with node generator:
       [ADDED]  nodes/beta/cookbooks/system/attributes
       [ADDED]  nodes/beta/cookbooks/beta/recipes/default.rb
       [ADDED]  nodes/beta/cookbooks/beta/attributes/beta_node.rb

And a few cookbooks:


  $ chef-gen cookbook beta --environment=staging --platform=ec2
  Generating with cookbook generator:
       [ADDED]  cookbooks/postgresql/attributes/server.rb
       [ADDED]  cookbooks/postgresql/recipes/server.rb

Use the “chef” script to manage your nodes:


  $ chef -T
  (in /Users/ben/code/myapp/chef)
  cd cookbooks
  cd /Users/ben/code/myapp/chef
  cd nodes/beta/cookbooks
  cd /Users/ben/code/myapp/chef
  rake beta:deploy   # Deploy the beta cookbook.
  rake beta:package  # Package the beta cookbook.
  rake beta:test     # test the beta cookbook.

note use ‘chef’ instead of ‘rake’. (e.g. chef beta:deploy).

Something went wrong with that request. Please try again.