Hey all,

 I've created a puppet module to control LDAP in my environment. The ldap
packages on both the centos and ubuntu hosts seem to require a user and
group called 'ldap' (respectively).

in my ldap::install class I have the following defined:

user { "ldap":
    ensure => present,
  }

  group { "ldap":
    ensure => present,   }


But on each puppet run after the user and group is created the following
error occurs:

err: /Stage[main]/Ldap::Install/User[ldap]/ensure: change from absent to
present failed: Could not create user ldap: Execution of '/usr/sbin/usera
dd -M ldap' returned 9: useradd: group ldap exists - if you want to add
this user to that group, use -g.

Is there any way to achieve being able to create this user and group and
avoid the error on each run thereafter?

Thanks
Tim

-- 
GPG me!!

gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAOZy0emKOwegFtsqftuue9x5EgTLK3ZYUUDzNj%2B1iR9i0CzVpw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to