[chef] RE: RE: Re: Is "knife cookbook upload" Atomic ?


Chronological Thread 
  • From: "Fouts, Chris" < >
  • To: " " < >
  • Subject: [chef] RE: RE: Re: Is "knife cookbook upload" Atomic ?
  • Date: Thu, 27 Aug 2015 14:17:59 +0000
  • Accept-language: en-US

Use environment files with defined cookbook_versions {} attributes

 

Chris

 

From: Benzinger, Dennis [mailto:
Sent: Wednesday, August 26, 2015 9:37 AM
To:
Subject: [chef] RE: Re: Is "knife cookbook upload" Atomic ?

 

Hello John,

 

Policyfiles are a relatively new feature. What did people do in older Chef versions?


I see two options:

-          Stop the Chef clients, upload cookbooks and start them again

-          Block connection from the Chef clients e.g. on a firewall

 

 

Thanks,
Dennis

 

From: John Keiser [ ">mailto: ]
Sent: Dienstag, 25. August 2015 17:25
To: ">
Subject: [chef] Re: Is "knife cookbook upload" Atomic ?

 

Hi!

 

knife cookbook upload will atomically switch individual cookbooks, but won't switch out whole sets of cookbooks.

 

Policyfiles are almost certainly what you are looking for here: assign a policy to your node, and it will lock down to an exact set of cookbooks (and atomically switch from one set to another). You can learn more about Policyfile here: https://www.chef.io/blog/2015/08/18/policyfiles-a-guided-tour/

 

--John

 

On Tue, Aug 25, 2015 at 7:40 AM Benzinger, Dennis < "> > wrote:

Hello List,

we are wondering what will happen if a Chef client is starting and at the same
time new cookbooks are uploaded.

Is it guaranteed that the client will either use all old or all new cookbooks?

Or could it happen that it uses a new version of cookbook A but an old version
of cookbook B because the second one was not uploaded yet when the client
started ?


Thanks,
Dennis

--

Dennis Benzinger
IT Architecture Senior Specialist
hybris Cloud Services
" target="_blank">

hybris GmbH
Nymphenburger Straße 86
80636 München, Germany
Fax +49 89 890 65 555
www.hybris.com
hybris GmbH, Nymphenburger Str. 86, 80636 München, Deutschland.
Geschäftsführer: Ariel F. Lüdi, Carsten Thoma, Michael Zips.
Amtsgericht München, HRB 124384.




Archive powered by MHonArc 2.6.16.

§