[chef] Re: Re: Introducing the httpd cookbook


Chronological Thread 
  • From: Lamont Granquist < >
  • To:
  • Cc: Bráulio Bhavamitra < >
  • Subject: [chef] Re: Re: Introducing the httpd cookbook
  • Date: Fri, 22 Aug 2014 18:31:00 -0700

On Fri Aug 22 18:12:27 2014, Bráulio Bhavamitra wrote:
I still cannot get this model of "all done by a wrapper cookbook using
LWRP". It is just simpler to read node values...

When you go down that road you eventually wind up needing two of a thing on a server and not just one instance. Then you start putting arrays of hashes in your attributes. Since you're now looping over an array and firing off a lot of resources you'll want to internally implement that problem as LWRPs anyway. Then eventually you'll wind up wanting to merge arrays in your attributes and you'll wind up on this page eventually: https://coderanger.net/arrays-and-chef/

Its much easier to just expose the LWRPs. Then the user can use node attributes, drive them with databags, or just statically code them in the LWRP.




Archive powered by MHonArc 2.6.16.

§