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


Chronological Thread 
  • From: Yoshi Spendiff < >
  • To: chef < >
  • Subject: [chef] Re: RE: RE: Re: Is "knife cookbook upload" Atomic ?
  • Date: Thu, 27 Aug 2015 12:34:36 -0700

The command berks apply <ENVIRONMENT> is an easy option for locking environment cookbook version.

Berkflow is another option if you use environment cookbooks

On Thu, Aug 27, 2015 at 7:17 AM, Fouts, Chris < " target="_blank"> > wrote:

Use environment files with defined cookbook_versions {} attributes

 

Chris

 

From: Benzinger, Dennis [mailto: " target="_blank"> ]
Sent: Wednesday, August 26, 2015 9:37 AM
To: " target="_blank">
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 [ " target="_blank">mailto: ]
Sent: Dienstag, 25. August 2015 17:25
To: " target="_blank">
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 < " target="_blank"> > 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.




--
Yoshi Spendiff
Ops Engineer
Indochino
Mobile: +1 778 952 2025



Archive powered by MHonArc 2.6.16.

§