Thomas Rasmussen
2011-Apr-28 10:15 UTC
[Puppet Users] User management and group overriding
Hey I''m having a problem getting my user management module to work. I can create users and groups without any problems, but if I need to override group memberships on a single node, I get the "Error 400 on SERVER: Only subclasses can override parameters" This is what I have setup: usermgmt module, init.pp import ''users.pp'' import ''groups.pp'' class usermgmt::projectA inherits usermgmt{ realize ( User["userA"], Group["group1"], ) } class usermgmt { include my_users include my_groups } in my site.pp I have a node definition: node myNode { include usermgmt::projectA User["userA"] { groups => "group2" } } group2 is a static group defined on the server. If I remove the second line in the node definietion, it works and userA is created as well as group1. How can I add userA to the group2 group on this site specifically? projectA is used on different servers, so I cannot (and do not want to) simply add the group2 to the user generically as it is only on this single node he should have access to this group. Hope this makes sense... but what is the best procedure? I have tried different things, but I can''t seem to get it to work (or maybe I''m misunderstading it?) I''m running puppet 2.6 on all servers. Regards Thomas -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.