No commit activity in last 3 years
No release in over 3 years
This gem provides Capistrano tasks to run chef-solo with Capistrano, with hardly any configuration needed.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

Capistrano Chef-solo

This is an attempt to combine the powers of Capistrano and chef-solo.

You can easily specify run lists:

before "deploy" do
  chef.solo "recipe[foo]", "recipe[bar]"
end

And set some node attributes:

set :chef_attributes, :foo => { :bar => "baz" }

Cookbooks will be automatically be copied from config/cookbooks and vendor/cookbooks.

Then an empty VM can be installed, configured and deployed in one single command:

cap deploy

Installation

Add to your Gemfile:

gem 'capistrano_chef_solo', :require => false, :group => :development

And run bundle install.

Next, require me from your Capfile:

require 'capistrano_chef_solo'

Usage

Read the full documentation by typing:

cap --explain chef | less

Note

This gem is in very early stage of development and should be considered as just a spike at this moment. Feel free to use it, and give me feedback on your experiences. But please, try it out on a simple VM first.

Todo

  • Support roles in both Capistrano and Chef.
  • Support remote cookbooks

Tips

Colors

Capistrano and chef both give a lot of output. It helps to install capistrano_colors

Vagrant

Using Vagrant is a good way for testing out chef recipes.


Copyright Iain Hecker, 2011. Released under the MIT License.