[chef] RE: Re: RE: Re: Which cookbook version wins in this case?


Chronological Thread 
  • From: "Fouts, Chris" < >
  • To: " " < >
  • Subject: [chef] RE: Re: RE: Re: Which cookbook version wins in this case?
  • Date: Thu, 12 Mar 2015 14:30:27 +0000
  • Accept-language: en-US

I explore that, thanks!

 

Chris

 

From: Tensibai [mailto:
Sent: Wednesday, March 11, 2015 1:09 PM
To:
Subject: [chef] Re: RE: Re: Which cookbook version wins in this case?

 

You may use a report handler for this:

An example one with this use case is available on the doc site here: http://docs.chef.io/handlers.html#cookbook-versions-rb

Le 2015-03-11 17:39, Fouts, Chris a écrit :

Thanks. I'm testing this now. How do I show the cookbooks' version that converged on the node? "knife node show" of course shows the run list, but not the cookbooks' versions?

 

Chris

 

From: Taylor Price [ ">mailto: ]
Sent: Tuesday, March 10, 2015 10:46 PM
To: ">
Subject: [chef] Re: Which cookbook version wins in this case?

 

1.0.0 should win. It satisfies all requirements, where 1.2.0 does not.



On Mar 10, 2015, at 2:23 PM, Fouts, Chris < "> > wrote:

Say I have a web_role cookbook, and its metadata.rb file looks like this

 

depends 'apache', '= 1.0.0'

depends 'webapp', '= 1.0.0'

depends 'someapp', '= 1.0.0'

 

...and my webapp cookbook's metadata.rb files look like...

 

depends 'apache' # Not pinned to any version

 

On the server I have "> and "> versions of the apache cookbook

 

Now if I add my web_role cookbook to my node's run list, which version of the apache cookbook will converge, 1.0.0 defined in the web_role's metadata.rb file, or the 1.2.0, latest version on the chef server?

 

Chris

 

 

 

 




Archive powered by MHonArc 2.6.16.

§