So the way I have implemented it is that we have a basenode node with the
common elements that all nodes get.  The basenode is then inherited by each
of the specific nodes, therefore you get something like:

import "foo"
import "httpd"

node basenode {
 include foo
}

node webnode inherits basenode {
 include httpd
}

node www1.example.com inherits webnode {}
node www2.example.com inherits webnode {}


Does that make sense?

On Mon, Dec 22, 2008 at 2:32 PM, Peter Meier <peter.me...@immerda.ch> wrote:

>
> Hi
>
> >> Pay attention to the fact that inheritance in nodes is slightly
> >> different than in classes. The Best thing imho is to build such
> >> inheritance in the classes itself and leave any inheritance out of
> >> the node definitions.
> >
> > Can you explain that in a bit more detail?
>
> Some of that I explained in these 2 mails:
>
> http://markmail.org/message/ivwno5cpaouavgsu
> http://markmail.org/message/ls2bxc7yqwre564s
>
> however, I thought that I explained in another thread it more in a
> detail, but I can't find it anymore.
> If you have further questions, don't hesitate to ask.
>
> cheers pete
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to