On Thu, 22 Jan 2009 09:34:11 -0600
Mike Renfro wrote:

> 
> On 1/22/2009 9:10 AM, Arnau Bria wrote:
> 
> > Is there ant way for grouping node in nodes.pp? 
> 
> The following should work for what you described. I use a similar
> model to have a parent class for all compute cluster nodes, and then
> child classes for each group of nodes that needs a slightly different
> policy (a reboot schedule for nodes that operate as Windows PCs
> during the day, another group that should have a particular piece of
> software loaded on them, etc.)
> 
> class worker-node {
>    include C
> }
> 
> class worker-node-a inherits worker-node {
>    include A
> }
> 
> class worker-node-b inherits worker-node {
>    include B
> }
> 
> node "td234.pic.es" {
>    include worker-node-a
> }
> 
> node "td065.pic.es", "td006.pic.es" {
>    include worker-node-b
> }
Yep, I was thinking of inherits, but I'll have to control host group
like:
node "nodeA" "nodeB"  {
}

which is what I'm trying to not use.

Thanks for your reply,
Arnau

--~--~---------~--~----~------------~-------~--~----~
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