Issue #708 has been updated by Robert Scheer.
Actually, the problem is bigger than just the puppet-test to see if a user exists: useradd/del/mod do exactly the same thing (getpwnam), so even if puppet would look only in /etc/passwd before executing those programs, useradd will not add a user that already exist in nis (or probably any other external user directory, like ldap), and userdel/mod will complain that a user that exists in nis cannot be found in /etc/passwd. The only real solution seems to be what Derek Whayman suggested 3 years ago in #935 : let puppet parse and modify /etc/passwd and shadow directly, so it can ignore users from external directories completely. My ruby skills are reading-only i'm afraid (and even that with difficulty), but if there is anything I can do to solve this problem, please tell me. ---------------------------------------- Feature #708: User and Group providers should directly parse /etc/passwd and /etc/group https://projects.puppetlabs.com/issues/708 Author: Digant Kasundra Status: Accepted Priority: Normal Assignee: Markus Roberts Category: user Target version: unplanned Patch: None Affected Puppet version: 0.25.4rc1 Keywords: Branch: The current user and group providers rely on the Etc module that ships with Ruby to figure out the current state of the system, but that library provides information about users and groups not manageable by Puppet. Instead, the providers should use [[ParsedFile]] to directly parse the appropriate files. -- 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 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-bugs?hl=en.
