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