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


Chronological Thread 
  • From: Daniel DeLeo < >
  • To:
  • Subject: [chef] Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: any plan for partial templates in Chef?
  • Date: Thu, 15 Nov 2012 09:21:49 -0800


On Thursday, November 15, 2012 at 9:17 AM, Peter Norton wrote:

If using a partial can cause shadowing then some namespacing should come into play in case e.g. node and node-prime with modified values are both passed in.


-Peter

I'd rather leave this up to the user. For example, if you have a template

template "/path"
  variables :ports => [8000, 8080]
end

And a partial:

render "my_partial", :variables => {:ports => [4000]}

Then I think you specified your intent, and chef should respect it.

-- 
Daniel DeLeo




Archive powered by MHonArc 2.6.16.

§