Default variable details
Some of the debops.nscd default variables have more extensive configuration
than simple strings or lists, here you can find documentation and examples for
them.
nscd__configuration
The nscd__*_configuration variables define the contents of the
/etc/nscd.conf configuration file. The variables are merged in order
defined by the nscd__combined_configuration variable, which allows
modification of the default configuration through the Ansible inventory. See
nscd.conf(5) for possible configuration parameters and their values.
Examples
See nscd__default_configuration variable for an example of
existing configuration.
Syntax
The variables contain a list of YAML dictionaries, each dictionary can have specific parameters:
nameRequired. Name of the NSS service to cache. If the
nameparameter is set to'global', and theoptionsparameter is defined, this creates a special "global" section at the beginning of the configuration file.The
nameparameter is used as an anchor to merge multiple configuration entries with the same name together.stateOptional. If not specified or
present, a given configuration section will be included in the generated configuration file. Ifabsent, a given configuration section will be removed from the generated file. Ifcomment, the configuration section will be present, but commented out.commentOptional. String or YAML text block with a comment added before a given configuration section.
optionsOptional. A list of configuration options which should be included in a given configuration section. This parameter only makes sense in the "global" section, and otherwise should not be present in configuration entries. See the nscd.conf(5) manual page for the possible configuration options.
Each list element is defined as a YAML dictionary with specific parameters:
nameRequired. The configuration option name.
valueRequired. The configuration option value. Can be defined as a string, an integer or a boolean.
stateOptional. If not specified or
present, a given configuration option will be included in the generated configuration file. Ifabsent, a given configuration option will be removed from the generated file. Ifcomment, the configuration option will be present, but commented out.
The parameters described below are based on the configuration options defined
in the nscd.conf(5) manual page. All of the parameters are usually
required for a given configuration section to work; different nscd flavors
will use different parameters.
enable_cacheBoolean. Enable or disable cache for a given NSS service.
positive_time_to_liveNumber of seconds after which an existing entry is removed from cache.
negative_time_to_liveNumber of seconds after which a non-existent entry is removed from cache.
suggested_sizeSize of the hash that is used to store cached entries. Its value should be a prime number.
check_filesBoolean. If
True, the service checks the contents of the/etc/passwd,/etc/groupand/etc/hostsfiles and invalidates the cached entries if the files changed.persistentBoolean. If
True, cached entries of a given NSS service will be kept between nscd daemon restarts.sharedBoolean. If
True, the memory mapped for cache is shared with the service clients directly instead of forcing them to talk to the daemon.max_db_sizeSpecify the maximum size of the cache for a given NSS service.
auto_propagateBoolean. When set to
Falsefor thepasswdorgroupservice, then the.bynamerequests are not added topasswd.byuidorgroup.bygidcache. This may help for tables containing multiple records for the sameidvalue.