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


Chronological Thread 
  • From: Kevin Nuckolls < >
  • To:
  • Subject: [chef] Re: Re: Vagrantfile for Berkshelf that works w/ solo or client and reads your knife.rb
  • Date: Mon, 25 Mar 2013 16:31:43 -0500

I can't seem to figure out how to get this to work with the new Vagrant 1.1 berkshelf-vagrant plugin. Anyone have sample usage they can gist?

Thanks,
-Kevin

On Fri, Mar 15, 2013 at 12:28 PM, Kevin Nuckolls < " target="_blank"> > wrote:
Awesome. That's quite helpful. I'll play with this and update the gist. 

Thanks!
-Kevin


On Fri, Mar 15, 2013 at 12:27 PM, Jamie Winsor < " target="_blank"> > wrote:
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
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.

§