[chef] Re: Multiple versions of same cookbook in one chef git repo


Chronological Thread 
  • From: Torben Knerr < >
  • To:
  • Subject: [chef] Re: Multiple versions of same cookbook in one chef git repo
  • Date: Thu, 15 Aug 2013 15:41:15 +0200

Chef 11.6.0 introduced the `versioned_cookbooks` knife configuration:

Have not tried it yet, but that might help you?



On Thu, Aug 15, 2013 at 1:31 PM, Kadel-Garcia, Nico < " target="_blank"> > wrote:

I’m dealing with some interesting configurations where one git repository is used for production and testing environments on a project. I can set up a different branch or tag for each environment, and set up a chef server for each environment, and keep testing or variant cookbooks separated that way. But it’s awkward.

 

I’d love to be able to use cookbook versions, specified for each environment as needed, to load or change the version of the cookbook. So “example” cookbook 1.0.0 gets loaded on most hosts, for example, but on testing hosts for the same server “example” cookbook “0.0.9” is specified and used. The difficulty is being able to record and load the distinct cookbooks from the same working git repository. If I try publishing them as “cookbooks/example-0.0.9” and “cookbooks/example-0.1.0”, they get uploaded as “example-0.0.9”, with version “0.0.9”, and that breaks things seriously.

 

Does anyone know how to publish and automatically upload distinct versions cookbooks of the same name in a working chef server environment, under git?

 

--
Nico Kadel-Garcia
Senior Systems Consultant
Email: " target="_blank">
Cell Phone: +1.339.368.2428

 





Archive powered by MHonArc 2.6.16.

§