Hi,
On Jul 22, 2011, at 2:31 PM, Oliver Beattie wrote:

> I have a definition like this in one of my manifests:
> 
> group { 'foo':
>     ensure => present,
> }
> 
> user { 'bar':
>     ensure => present,
>     groups => ['foo'],
>     managehome => true,
>     home => '/home/bar',
>     shell => '/usr/sbin/nologin',
>     require => Group['deploy'],
> }
> 
> When I run it, however, I get this error:
> 
> err: /Stage[main]/App-server/User[deploy]/ensure: change from absent to 
> present failed: Could not create user deploy: Execution of '/usr/sbin/useradd 
> -d /home/deploy -G deploy -s /usr/sbin/nologin -m deploy' returned 9: 
> useradd: group deploy exists - if you want to add this user to that group, 
> use -g.
> 
> What can I do to fix this? I don't always want to assign the user to that 
> group as its primary?

Is this a Debian system?
On Debian the user add command automatically adds a primary group with the same 
name as the username.

What happens when you run the useradd command directly?

Kind regards,

Martin



-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" 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-users?hl=en.

Reply via email to