Issue with puppetlabs-accounts for Usercreation on Ubuntu [closed]

asked 2018-06-21 05:06:15 -0600

zilchms gravatar image

updated 2018-06-22 10:54:53 -0600

DarylW gravatar image

I am trying to use the puppetlabs-accounts module to deploy users on some of my vms. My current code looks loke this

class profiles::usermgt
{
user { "mark": 
    comment            => "Markl",
    ensure             => "present",
    groups             => "admin",
   name                => 'mark',
  }
}

On my Debian 9 clients it works like a charm, the user is created from scratch. On my Ubuntu clients however, on both 14.04 LTS and 16.04 LTS this does not work correctly and i get an error telling me "usermod mark" can not be executed since mark is not in the file /etc/passwd. Am i missing something obvious?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by zilchms
close date 2018-07-13 12:23:11.529663

Comments

The issue was with other installed packages on the ubuntu systems. libpam-ldap and the configuration for pam messed with the creation for the user, therefore making the module for accounts not runable

zilchms gravatar imagezilchms ( 2018-07-13 12:24:56 -0600 )edit