[chef] Re: Re: Re: Re: how to alter a recipe in the simplest, DRYest way?


Chronological Thread 
  • From: Roger Rohrbach < >
  • To:
  • Subject: [chef] Re: Re: Re: Re: how to alter a recipe in the simplest, DRYest way?
  • Date: Tue, 11 May 2010 20:27:11 +0200

Ah, brilliant! Thanks, Gilles. It was, like, my first day using Chef...


On May 8, 2010, at 7:51 PM, Gilles Devaux wrote:

Always remember Chef is ruby.

I have a site-cookbook nginx cookbook with attribute file

include_attribute "nginx::nginx" #make sure of the load order
node[:nginx][:configure_flags] << "--with-http_stub_status_module" #add

--Gilles

On Sun, Apr 25, 2010 at 10:09 AM, Roger Rohrbach < > wrote:
Joshua,

Thanks. I'll try that. But I humbly submit that Chef can do better. DRY,
DRY, DRY.  It'd be great to have syntax like:

   append_attribute "nginx" => {"configure_flags" =>
 "--with-http_realip_module"}

(That's probably not what it'd look like, but you get the idea.)

R.



Archive powered by MHonArc 2.6.16.

§