Issue #2249 has been updated by James Turnbull. Category set to group Status changed from Unreviewed to Needs more information
Can you provide --trace --debug --verbose output from the runs please? ---------------------------------------- Bug #2249: Unexpected behavior when modifying users' groups http://projects.reductivelabs.com/issues/2249 Author: Fraser Scott Status: Needs more information 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 -~----------~----~----~----~------~----~------~--~---
