Hey folks,

I have a question regarding users with varying group memberships.  If I
have two several nodes, and on each node I need user FOO present, but in
different groups, is the best approach to that an inheritance chain?


For example, a base class 'users', and two other classes 'node1users'
and 'node2users', both of which inherit users and execute something like:


    User['FOO'] { groups +> "node1group" }


Or, should the user definition use a conditional, like:

    @user { "FOO":
        uid    => "1100",
        groups => $hostname ? { node1 => "node1group", node2 =>
"node2group" };
    }



I'm not really sure what the best methodology is.  The former seems to
beget otherwise unnecessary inheritance chains, and the latter could
obviously get messy, especially if you $hostname as is done in the
example above.  Am I barking up the wrong tree, or are these the best
options available?


Thanks,
Ryan

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