Class Puppet::Provider::NameService
In: lib/puppet/provider/nameservice/directoryservice.rb
lib/puppet/provider/nameservice/objectadd.rb
lib/puppet/provider/nameservice/pw.rb
lib/puppet/provider/nameservice.rb
Parent: Object

This is the parent class of all NSS classes. They‘re very different in their backend, but they‘re pretty similar on the front-end. This class provides a way for them all to be as similar as possible.

Methods

Classes and Modules

Class Puppet::Provider::NameService::DirectoryService
Class Puppet::Provider::NameService::ObjectAdd
Class Puppet::Provider::NameService::PW

Public Class methods

List everything out by name. Abstracted a bit so that it works for both users and groups.

This is annoying, but there really aren‘t that many options, and this is built into Ruby.

Public Instance methods

Autogenerate a value. Mostly used for uid/gid, but also used heavily with DirectoryServices, because DirectoryServices is stupid.

Autogenerate either a uid or a gid. This is hard-coded: we can only generate one field type per class.

Does our object exist?

Retrieve a specific value by name.

Retrieve what we can about our object

The list of all groups the user is a member of. Different user mgmt systems will need to override this method.

Convert the Etc struct into a hash.

[Validate]