logo       

Re: Template Nodes considered harmful: msg#00235

sysutils.puppet.user

Subject: Re: Template Nodes considered harmful

On Mon, Oct 22, 2007 at 02:22:40PM +0200, David Schmitt wrote:
> On Wednesday 17 October 2007, Digant C Kasundra wrote:
> > --On Tuesday, October 16, 2007 9:28 AM -0500 Luke Kanies <luke@xxxxxxxxxxx>
> >
> > wrote:
> > >> As shown in the example, this allows for site defaults and per-node
> > >> overrides
> > >> for variables which will be propagated to the genericwebserver.
> > >
> > > Note that this is still file-order dependent, unfortunately -- if
> > > that class was already included elsewhere, then the variable override
> > > won't take.
> >
> > Yeah, this is partly why we don't use variables and instead use definitions
> > and override those definitions when needed, as Russ described.
>
> So, you are using
>
> | node muh {
> | webserver{
> | webserver:
> | var1=>val1,
> | var2=>val2
> | }
> | }
> | define webserver($var1, $var2) { include webserver }

I'd hope not. That's a pretty pointless define -- you'd take the contents
of the 'webserver' class and stuff it straight into the define's body.

- Matt

--
A polar bear is a rectangular bear after a coordinate transform.


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise