Issue #1708 has been updated by luke.
Turns out this only happens if you specify the group as a name, not a number:
<pre>
[EMAIL PROTECTED](0) $ sudo ralsh user test ensure=present gid=test
warning: /User[test]/gid: insync? "test" vs 1025: false
notice: /User[test]/gid: gid changed '1025' to 'test'
user { 'test':
shell => '/bin/sh',
password => '!',
home => '/home/test',
uid => '1023',
gid => '1025',
ensure => 'present'
}
[master ~]
[EMAIL PROTECTED](0) $ sudo ralsh user test ensure=present gid=test
warning: /User[test]/gid: insync? "test" vs 1025: false
notice: /User[test]/gid: gid changed '1025' to 'test'
user { 'test':
shell => '/bin/sh',
password => '!',
home => '/home/test',
uid => '1023',
gid => '1025',
ensure => 'present'
}
[master ~]
[EMAIL PROTECTED](0) $
</pre>
Notice that we get a change if we run the same code twice, which obviously
shouldn't happen.
----------------------------------------
Bug #1708: Strange behavior from the user provider in 0.24.6
http://projects.reductivelabs.com/issues/show/1708
Author: sam
Status: Accepted
Priority: Normal
Assigned to: luke
Category: user
Target version: 0.24.7
Complexity: Unknown
Affected version: 0.24.6
Keywords:
This is in RHEL4. Output from Tenshi log after running a test of 0.24.6 against
our config:
1: usermod info usermod[3068]: change user `sam\' GID from `4\' to `4\'
1: usermod info usermod[3124]: change user `tss\' GID from `4\' to `4\'
1: usermod info usermod[3033]: change user `peter\' GID from `4\' to `4\'
1: usermod info usermod[2999]: change user `happy\' GID from `4\' to `4\'
1: usermod info usermod[3163]: change user `monty\' GID from `11995\' to
`11995\'
----------------------------------------
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
-~----------~----~----~----~------~----~------~--~---