Issue #19090 has been updated by Matthaus Owens.

Released in Puppet 3.2.0-rc1

----------------------------------------
Bug #19090: User creation fails when group already exists with the same name as 
the new user and no group is given to provider
https://projects.puppetlabs.com/issues/19090#change-89563

* Author: John Julien
* Status: Closed
* Priority: Normal
* Assignee: John Julien
* Category: user
* Target version: 3.2.0
* Affected Puppet version: 
* Keywords: user useradd group
* Branch: https://github.com/puppetlabs/puppet/pull/1514
----------------------------------------
User creation fails when group already exists with the same name as the new 
user and no group is given to provider

Steps to reproduce:

root@linux3 [/root]
# puppet resource group testuser ensure=present 
Notice: /Group[testuser]/ensure: created
group { 'testuser':
  ensure => 'present',
}

root@linux3 [/root]
# puppet resource user testuser ensure=present 
Error: Could not create user testuser: Execution of '/usr/sbin/useradd -M 
testuser' returned 9: useradd: group testuser exists - if you want to add this 
user to that group, use -g.

Error: /User[testuser]/ensure: change from absent to present failed: Could not 
create user testuser: Execution of '/usr/sbin/useradd -M testuser' returned 9: 
useradd: group testuser exists - if you want to add this user to that group, 
use -g.

user { 'testuser':
  ensure => 'absent',
}




-- 
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://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to