[chef] Re: Re: Re: Nginx cookbook changes/improvements


Chronological Thread 
  • From: Peter Donald < >
  • To:
  • Subject: [chef] Re: Re: Re: Nginx cookbook changes/improvements
  • Date: Tue, 27 Nov 2012 11:54:06 +1100

On 11/26/12 10:15 AM, Jeffrey Hulten wrote:
I can see a compelling case for splitting cookbooks when there are large sets of dependencies that are not used by a piece that is useful to many people.

We prefer clean cookbooks with low coupling. When we have an optional feature that may require a different cookbook we use the "suggests" metadata in the cookbook. This documents that you may require this other cookbook but does not download the cookbook to the client automagically. 

For example, several of our cookbooks optionally use authbind (which allows you to bind to ports 0->512 without being root). However the cookbook may not actually need the cookbook if you are bound to a port such as 11221. So in most of these cookbooks we must explicitly add authbind to the runlist if we decide to configure a port like 55 that requires the use of authbind.
 

--
Cheers,

Peter Donald



Archive powered by MHonArc 2.6.16.

§