[chef] Re: Re: Re: Re: any plan for partial templates in Chef?


Chronological Thread 
  • From: Daniel DeLeo < >
  • To:
  • Subject: [chef] Re: Re: Re: Re: any plan for partial templates in Chef?
  • Date: Mon, 12 Nov 2012 09:22:13 -0800

On Sunday, November 11, 2012 at 4:31 PM, John Dyer wrote:
Hey Guys,

I actually opened up a ticket on this a while ago ( http://tickets.opscode.com/browse/CHEF-3249 ).  This feature would definitely make my life dealing a ton easier, XML FML! :)

-John


On Sun, Nov 11, 2012 at 7:02 PM, Juanje Ojeda Croissier < " target="_blank"> > wrote:
+1

On Sun, Nov 11, 2012 at 9:17 PM, Ranjib Dey < "> > wrote:
> +1 for this.
>
> On Nov 11, 2012 1:02 PM, "Bryan Berry" < "> > wrote:
>>
>> Is there any plan to add Rails-style partials to Chef?
>> http://rdoc.info/docs/rails/3.2.8/ActionView/PartialRenderer
>>
>> In my mind they would be incredibly useful, particularly for giant XML
>> configuration documents where 95% is boilerplate but the remaining 95% is
>> heavily customized for each application



--
Juanje

http://about.me/juanje

I don't think Opscode will be able to get to this soon, but we'd definitely welcome a patch for this. The only tricky bit is that you need to factor out the logic for finding and downloading templates so that you can use it in the partial rendering code. The relevant bits are here: https://github.com/opscode/chef/blob/master/lib/chef/provider/template.rb#L81-94

-- 
Daniel DeLeo




Archive powered by MHonArc 2.6.16.

§