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


Chronological Thread 
  • From: Bryan Berry < >
  • To:
  • Subject: [chef] Re: Re: Re: Re: Re: any plan for partial templates in Chef?
  • Date: Mon, 12 Nov 2012 19:17:21 +0100

Hey Daniel,

nice to know that it is on your radar. I will take a look at it and see what I can do

On Mon, Nov 12, 2012 at 6:22 PM, Daniel DeLeo < " target="_blank"> > wrote:
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 < " target="_blank"> > wrote:
> +1 for this.
>
> On Nov 11, 2012 1:02 PM, "Bryan Berry" < " target="_blank"> > 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.

§