[chef] Re: Re: RE: Re: App cookbooks


Chronological Thread 
  • From: Lamont Granquist < >
  • To:
  • Subject: [chef] Re: Re: RE: Re: App cookbooks
  • Date: Sun, 05 Jan 2014 13:26:14 -0700


If you went the whole way and had one cookbook for deploying apps, with databag-driven config for what-app-gets-deployed-where-and-how-its-configured, then you could front end the data bags with a webservice and let entirely chef-naive users control configuring and deploying applications without needing any devops-ey intervention.  With app-per-cookbook you're actually a little more limited in that you need people familiar with chef and git or whatnot to be tightly coupled to the deployment process.

I keep hoping that someone in the Chef community would start using data bags more like a real database and writing web front-ends that sit in front of them for application and user management, but so far I haven't seen that pattern pop up yet...

On 1/3/14 6:26 AM, Dylan Northrup wrote:
" type="cite">
Personally, the rule of thumb I have is use a shared cookbook until complexity of applications diverges to the point it "makes sense" to split the cookbook into multiple different ones. It's largely a matter of taste, but I've been bitten too many times by code fixes not being deployed everywhere.  By having multiple apps use the same cookbook, I use change inertia in my favor to stave off the cookbook split until it's absolutely necessary (and, in the process, helping insure fixes made to a cookbook affect as many apps/services/sites as possible).  Works for me, but YMMV.


On Fri, Jan 3, 2014 at 12:31 AM, Kadel-Garcia, Nico < " target="_blank"> > wrote:
One cookbook per app means modularity. Changes in one small, well built application do not impinge on the other applications, and enhancements to the logic or attributes are not so reliant on avoiding conflict with interwoven applications.




I like the idea of one cookbook per app.

It allows for expandability and scaling opportunity.  

If that makes sense :)



All -

What’s the community consensus on cookbooks to deploy applications. One per app? Or a generalized cookbook that can deploy any app (as long as it follows a set pattern)?

Thanks,
Mark

--
mark nichols | (t|a.n) @zanshin | (w) zanshin.net 








Archive powered by MHonArc 2.6.16.

§