- From: Thom May <
>
- To:
- Subject: [chef] Re: How to use chef LWRP to modify one file
- Date: Tue, 10 Apr 2012 13:08:33 +0100
On Tue, Apr 10, 2012 at 11:34, Alejandro Recarey
<
>
wrote:
>
Hi all, I have a question on the use of chef LWRP when various
>
resources have to be configured in one file.
>
However, as far as I have been able to see in the documentation, each
>
time the LWRP is called, it has to generate a template. Is it possible
>
to just have the LWRP just accumulate the variables each time it is
>
called and then generate the template at the end? Or is there another
>
way of doing this that I am not seeing? I am still somewhat of a chef
>
newbie so I might have missed something.
See the bottom of
http://wiki.opscode.com/display/chef/Definitions ;
while that's for definitions, the same code ought to be easily
transferred to an LWRP.
-t
Archive powered by MHonArc 2.6.16.