Issue #2249 has been updated by Luke Kanies.

Status changed from Needs more information to Rejected

Set 'membership' to 'inclusive' to get the behaviour you're looking for.
----------------------------------------
Bug #2249: Unexpected behavior when modifying users' groups
http://projects.reductivelabs.com/issues/2249

Author: Fraser Scott
Status: Rejected
Priority: Normal
Assigned to: 
Category: group
Target version: 
Complexity: Unknown
Affected version: 0.24.8
Keywords: 


Somewhat similar to "1076":http://projects.reductivelabs.com/issues/1076 I am 
experiencing problems modifying a users' groups.

Test case:

<pre>
node "test" {
       $first_run = true
        if $first_run {
                group {"brain":    ensure => present }
                group {"pinky":    ensure => present }
                group {"snowball": ensure => present }
                user { "pinky": 
                        gid => "pinky",
                        ensure => present,
                        groups => "brain" 
                }
        }
        else {
                group {"brain":    ensure => present }
                group {"pinky":    ensure => present }
                group {"snowball": ensure => present }
                user { "pinky": 
                        gid => "pinky",
                        ensure => present,
                        groups => "snowball" 
                }
        }
}
</pre>

As in 1076, toggle the first_run variable.

First run:

'/usr/sbin/useradd -g pinky -G brain pinky' called as expected

Second run:

'/usr/sbin/usermod -G brain,snowball pinky' is run and retains the 'brain' 
group, '/usr/sbin/usermod -G snowball pinky' would be the expected behavior.

Environment:

Puppet: 0.24.8
OS: Linux debian5-test 2.6.26-2-amd64 #1 SMP Fri Mar 27 04:02:59 UTC 2009 
x86_64 GNU/Linux




-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://reductivelabs.com/redmine/my/account

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to