|
Re: Template Nodes considered harmful: msg#00235sysutils.puppet.user
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> |
|---|---|---|
| Previous by Date: | Re: Managehome not working in User type in Linux OS: 00235, Luke Kanies |
|---|---|
| Next by Date: | what's the maximum of the runinterval: 00235, huang mingyou |
| Previous by Thread: | Re: Template Nodes considered harmfuli: 00235, David Schmitt |
| Next by Thread: | Re: Template Nodes considered harmful: 00235, David Schmitt |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |