Module Puppet::Util::POSIX
In: lib/puppet/util/posix.rb

Utility methods for interacting with POSIX objects; mostly user and group

Methods

Public Instance methods

Retrieve a field from a POSIX Etc object. The id can be either an integer or a name. This only works for users and groups. It‘s also broken on some platforms, unfortunately, which is why we fall back to the other method search_posix_field in the gid and uid methods if a sanity check fails

Get the GID of a given group, provided either a GID or a name

Determine what the field name is for users and groups.

Determine what the method is to get users and groups by id

Determine what the method is to get users and groups by name

A degenerate method of retrieving name/id mappings. The job of this method is to retrieve all objects of a certain type, search for a specific entry and then return a given field from that entry.

Get the UID of a given user, whether a UID or name is provided

[Validate]