Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
User management and group overriding
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Thomas Rasmussen  
View profile  
 More options Apr 28 2011, 6:15 am
From: Thomas Rasmussen <rasmussen.tho...@gmail.com>
Date: Thu, 28 Apr 2011 03:15:31 -0700 (PDT)
Local: Thurs, Apr 28 2011 6:15 am
Subject: 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 must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »