[chef] Re: RE: Re: RE: Re: RE: Re: Single chef server vs. multiple chef servers - pros and cons?


Chronological Thread 
  • From: Yauhen Artsiukhou < >
  • To:
  • Subject: [chef] Re: RE: Re: RE: Re: RE: Re: Single chef server vs. multiple chef servers - pros and cons?
  • Date: Fri, 24 Oct 2014 13:00:39 +0300

After first read, policy file looks very complicated. Especially if I have many cookbooks with its own policyfiles. How it would be merged?

To solve environment-cookbook pattern with berkshelf I've decided to remove cookbook itself and leave only Berksfile with list of top-level cookbooks.
This Berkfile has two sources:
1. Berkshelf API (proxy to my Chef Server, hope berkshelf will work with chef server api directly in next releases)
2. Community Site

Now you can do something like 'berks install', 'berks upload' for updating cookbook information.
Then, stage by stage you can do:
1. berks apply dev
2. knife ssh "chef_environment:dev" "sudo chef-client # force global reconfiguration
3. <Look that there are no errors>
4. berks apply qa
5. knife ssh "chef_environment:qa" "sudo chef-client # force global reconfiguration
6. Test all
7. berks apply production





2014-10-23 21:13 GMT+03:00 Fouts, Chris < " target="_blank"> >:
Yes, I'll look into the PolicyFile feature. Thanks!

Chris

-----Original Message-----
From: Daniel DeLeo [mailto: "> ] On Behalf Of Daniel DeLeo
Sent: Thursday, October 23, 2014 1:47 PM
To: ">
Subject: [chef] Re: RE: Re: RE: Re: Single chef server vs. multiple chef servers - pros and cons?



On Thursday, October 23, 2014 at 10:38 AM, Fouts, Chris wrote:

> Thanks Phil, I’m doing this NOW, and yes, I’m disciplined enough to update my metadata.rb files, and to pick up the correct version in my environments. However, one flaw of Chef (IMO) is that environments and roles are not versioned, so someone can upload an environment with a bad cookbook version to the Chef server. IOW, there is no built-in Chef mechanism to catch this “easy to screw up” process.
>
> Chris

This isn’t viable in the short term, but we’re working on some features to address these problems (the “Policyfile” feature mentioned earlier in this thread). There’s a lot of information in the release announcement for ChefDK 0.3.0: https://www.getchef.com/blog/2014/10/02/chefdk-0-3-0-released-introducing-policyfiles/

I can’t give you a timeline for when we expect this to be production ready, but it’s something you might wish to consider if you’re considering making drastic changes to your workflow.

--
Daniel DeLeo








Archive powered by MHonArc 2.6.16.

§