Project

chef-berks

0.0
No commit activity in last 3 years
No release in over 3 years
Allows chef-client/solo to grab cookbooks on the fly using berkshelf
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0

Runtime

 Project Readme

Chef::Berks

Chef Berks monkey patches chef to allow grabbing cookbooks using berkshelf on the fly. If this works well,

  • you dont have to upload community cookbooks at your chef server.
  • you dont have to use vagrant-berkshelf plugin etc

Installation

Add this line to your application's Gemfile:

gem 'chef-berks'

And then execute:

$ bundle

Or install it yourself as:

$ gem install chef-berks

Usage

You have to require chef-berks library in your chef client or solo config You also have to set the use_berkshelf config to true.

require 'chef/berks'
use_berkshelf = true

By default this library uses /etc/chef/Berksfile , you can specify a different path using the berksfile config parameter (set in solo or client config).

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request