- From: "aL." <
>
- To: Lamont Granquist <
>
- Cc:
- Subject: [chef] Re: [Template] - variables vs direct attribute access
- Date: Sat, 1 Nov 2014 23:48:40 +0000
Thankyou all guys for your explanations!
My brain was on holidays that day, when i wrote the question, but in some way your answers bring some light to the issue!
Putting it all together:
- Avoid logic on template as possible.
- Use variables on template resources when you need logic/pre-proccessing. Putting logic on recipe's side.
- If you give node attribute values directly or computed to the template, through variables. Better do it with lazy, so other cookbooks can override those attributes later on the runlist.
What do you guys think about my summary here?
should i put this on a "Best Practices" Chef's manual? hehe?
Regards!
- [chef] Re: [Template] - variables vs direct attribute access, aL., 11/01/2014
Archive powered by MHonArc 2.6.16.