[chef] Re: Vagrantfile for Berkshelf that works w/ solo or client and reads your knife.rb


Chronological Thread 
  • From: Jamie Winsor < >
  • To: " " < >
  • Cc: chef < >
  • Subject: [chef] Re: Vagrantfile for Berkshelf that works w/ solo or client and reads your knife.rb
  • Date: Fri, 15 Mar 2013 10:27:01 -0700

Hey Kevin,

There's a class in Berkshelf for loading Chef's config without loading Chef as a dependency. You can see it here: https://github.com/RiotGames/berkshelf/blob/master/lib/berkshelf/chef/config.rb

It's not a complete 1-1 mapping but it hits the common things that people access in the config.

Jamie Winsor
@resetexistence

On Mar 15, 2013, at 10:01 AM, Kevin Nuckolls < "> > wrote:

Hi all,

I wanted to make a general Vagrantfile for Berkshelf cookbooks that you could provision in solo or w/ chef-client. I also wanted it to just read my chef-client configuration from knife.rb. That turned into a wild dance of gem dependency incompatibilities. I made a gist with my Vagrantfile and Gemfile so no one else has to figure it out.

https://gist.github.com/knuckolls/5171277

Hope someone finds this useful.

-Kevin



Archive powered by MHonArc 2.6.16.

§