Puppet: System Administration Automated

Support

Ticket #708 (new enhancement)

Opened 2 years ago

Last modified 9 months ago

User and Group providers should directly parse /etc/passwd and /etc/group

Reported by: digant Assigned to: luke
Priority: normal Milestone: unplanned
Component: user Version:
Severity: normal Keywords:
Cc: Triage Stage: Accepted
Attached Patches: None Complexity: Medium

Description (Last modified by luke)

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 Parsed File? to directly parse the appropriate files.

Change History

07/13/07 04:51:46 changed by barjunk

What about setting the uid? What OS is this?

07/18/07 18:25:59 changed by luke

  • stage changed from Unreviewed to Needs more info.

Is there a way for Puppet to know which users are in the passwd.db but not in the passwd file?

07/18/07 18:32:00 changed by digant

The only way I can currently think of is to actually parse the passwd file instead of using the libraries, though perhaps the libraries do offer a way (I'm not that familiar with them). Maybe the right approach is to have provider's for users?

11/24/07 04:18:48 changed by luke

I just can't see a good way to fix this. Do we update the 'resources' type so that it knows enough about users to not purge users that should be in /etc/passwd but aren't? Do we silently ignore any attempt at removing non-local users? Do we warn on every one?

I can't see a good behaviour here.

11/24/07 04:19:04 changed by luke

  • type changed from defect to enhancement.
  • summary changed from Puppet tries to manage non-local users on purge to Puppet should be able to avoid purging non-local users.

12/06/07 17:54:12 changed by luke

Marking #935 as a duplicate.

04/08/08 17:42:44 changed by luke

  • complexity changed from Unknown to Medium.
  • stage changed from Needs more info to Accepted.
  • summary changed from Puppet should be able to avoid purging non-local users to User and Group providers should directly parse /etc/passwd and /etc/group.
  • description changed.
  • milestone set to unplanned.

I'm changing this ticket to what it should be: Getting rid of the usage of 'Etc', and just parsing the files directly.

04/24/08 07:52:42 changed by luke

  • component changed from library to user.