Is there any way I can make the node definition "inherit" the site one?
All I want to do is add another entry into the array passed as the
'groups' parameter.
Good keyword that.
Put the use definition in a class. Each list of groups is a subclass
such that
class my_user_in_group_foo inherits my_user {
User["bla"] { groups +> [ "foo", "bar" ] }
}
Include those subclasses as appropriate.
Ah, of course! I'm still new to Puppet and had forgotten about class
inheritance. I just tried this and it works perfectly.
Many thanks!
Adam.
--
You received this message because you are subscribed to the Google Groups "Puppet
Users" group.
To post to this group, send email to puppet-us...@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.