User management and group overriding

10 views
Skip to first unread message

Thomas Rasmussen

unread,
Apr 28, 2011, 6:15:31 AM4/28/11
to Puppet Users
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


Reply all
Reply to author
Forward
0 new messages