[chef] Re: Re: Re: knife.rb cookbook_path with Berkshelf


Chronological Thread 
  • From: Andrew Gross < >
  • To: chef < >
  • Subject: [chef] Re: Re: Re: knife.rb cookbook_path with Berkshelf
  • Date: Wed, 21 Aug 2013 15:33:47 -0400

You can always download the cookbook manually and tell github to use the local copy:

cookbook '<name-of-the-cookbook>', path: '/absolute/path/to/the/cookbook'


On Wed, Aug 21, 2013 at 3:31 PM, Mark H. Nichols < " target="_blank"> > wrote:


On Aug 21, 2013, at 2:02 PM, Ranjib Dey < "> > wrote:

> berkshelf stores the cookbooks in a directory which has their version . So sudo cookbook will be stored as sudo-1.0.0. This wont work with chef, as it expects a directory named sudo. You need to invoke berkshelf install --path <some dir> and use <some dir>  as your cookbook_path.

Okay. I see that what I think of as 'ome_jboss' is actually 'one_jboss_23489h-daa338348c4d14e9e1abe693ecc98dfc6d412f5c'. Actually there are several ome_jboss cookbook versions, each with a different sha. All of our private cookbooks are individual Git repositories on GitHub and were populated into .berkshelf/cookbooks via a line like this in a Berksfile:

cookbook 'ome_jboss', github: 'kstateome/ome_jboss', protocol: :ssh

In reading the Berkshelf documentation I don't see a way to specify something other than the Git SHA to be appended to the resulting directory name.  Do I need to tag with the current version number all of our private cookbooks so that I can pull those specific versions into Berkshelf?

Thanks,
Mark





Archive powered by MHonArc 2.6.16.

§