Awesome. That's quite helpful. I'll play with this and update the gist.
Thanks!
-KevinOn 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.rbIt's not a complete 1-1 mapping but it hits the common things that people access in the config.Jamie Winsor@resetexistenceHi 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.