===
Puppet module to manage nscd, Linux's Name Service Cache Daemon.
Recommend reading the man page, NSCD.CONF(5). This module allows for parameterization of all options specified in the man page.
The module assumes that you want to set enable-cache to true for each of the services (passwd, group, hosts, and services). If this is not the case, you can disable the cache on a per service basis.
===
This module is built for use with Puppet v3 on the following platforms and supports Ruby versions 1.8.7, 1.9.3, 2.0.0 and 2.1.0.
- Debian 6
- EL 5
- EL 6
- EL 7
- Suse 10
- Suse 11
- OpenSuse 13.1
- Ubuntu 12.04 LTS
When using nscd in combination with Dell Authentication Services (QAS/VAS) [1] it is recommended to turn off caching of passwd and groups.
nscd::passwd_enable_cache: 'no' nscd::group_enable_cache: 'no'
[1] http://software.dell.com/products/authentication-services/
===
All numbers should be type cast as strings. Global options for nscd.con can be accessed as parameters, with the dashes changed to underscores. Each per service option can be accessed as parameters and follow the naming scheme of <service>_<option> with the dashed changed to underscores. So enable-cache for the passwd service is available as passwd_enable_cache. The default values follow that of the man page, unless otherwise noted.
String or array for name of package(s).
- Default: 'nscd'
String for value of ensure attribute of nscd package. Valid values are 'present', 'installed', or 'absent'.
- Default: 'present'
Path to nscd.conf.
- Default: '/etc/nscd.conf'
Owner of nscd.conf.
- Default: 'root'
Group of nscd.conf.
- Default: 'root'
Mode of nscd.conf. Must be in four digit octal notation.
- Default: '0644'
String or array for name of service(s).
- Default: 'nscd'
String for value of ensure attribute of nscd service. Valid values are 'present', 'running', 'absent', or 'stopped'.
- Default: 'running'
Value of enable attribute of nscd service. This determines if the service will start at boot or not. Allows for boolean, 'true', or 'false'.
- Default: true
String for value of the provider attribute of nscd service. Specifying here will allow you to change the platform's default.
- Default: 'USE_DEFAULTS'
Setting for logfile in nscd.conf. See nscd.conf(5). Must be an absolute path.
- Default: '/var/log/nscd.log'
Setting for threads in nscd.conf. See nscd.conf(5). Must be an number expressed as a string.
- Default: '5'
Setting for max-threads in nscd.conf. See nscd.conf(5). Must be an number expressed as a string.
- Default: '32'
Setting for server-user in nscd.conf. See nscd.conf(5). 'USE_DEFAULTS' will use platform specific defaults. RedHat based systems set this optional parameter to 'nscd' while other platforms do not use it.
- Default: 'USE_DEFAULTS'
Setting for stat-user in nscd.conf. See nscd.conf(5).
- Default: 'root'
Setting for debug-level in nscd.conf. See nscd.conf(5). Must be a number.
- Default: '0'
Settings for reload-count in nscd.conf. See nscd.conf(5). Must be a number or 'unlimited'.
- Default: '5'
Setting for paranoia in nscd.conf. See nscd.conf(5). Must be 'yes' or 'no'.
- Default: 'no'
Setting for restart-interval in nscd.conf. See nscd.conf(5). Must be a number.
- Default: '3600'
Switch to show passwd section in nscd.conf. Allows for boolean, 'true', or 'false'.
- Default: 'USE_DEFAULTS', based on OS platform
Switch to show group section in nscd.conf. Allows for boolean, 'true', or 'false'.
- Default: 'USE_DEFAULTS', based on OS platform
Switch to show hosts section in nscd.conf. Allows for boolean, 'true', or 'false'.
- Default: 'USE_DEFAULTS', based on OS platform
Switch to show services section in nscd.conf. Allows for boolean, 'true', or 'false'.
- Default: 'USE_DEFAULTS', based on OS platform
Switch to show netgroup section in nscd.conf. Allows for boolean, 'true', or 'false'.
- Default: 'USE_DEFAULTS', based on OS platform
Settings for enable_opt_auto_propagate in nscd.conf. Allows for boolean, 'true', or 'false'.
- Default: 'USE_DEFAULTS'
Settings for enable-cache passwd in nscd.conf. Must be 'yes' or 'no'.
- Default: 'no'
Settings for positive-time-to-live passwd in nscd.conf. Must be a number in seconds.
- Default: '600'
Settings for negative-time-to-live passwd in nscd.conf. Must be a number in seconds.
- Default: 20
Settings for suggested-size passwd in nscd.conf. Must be a number.
- Default: 211
Settings for check-files passwd in nscd.conf. Must be 'yes' or 'no'.
- Default: 'yes'
Settings for persistent passwd in nscd.conf. Must be 'yes' or 'no'.
- Default: 'yes'
Settings for shared passwd in nscd.conf. Must be 'yes' or 'no'.
- Default: 'yes'
Settings for max-db-size passwd in nscd.conf. Must be a number in bytes.
- Default: 33554432
Settings for auto-propagate passwd in nscd.conf. Must be 'yes' or 'no'.
- Default: 'yes'
Settings for enable-cache group in nscd.conf. Must be 'yes' or 'no'.
- Default: 'no'
Settings for positive-time-to-live group in nscd.conf. Must be a number in seconds.
- Default: '3600'
Settings for negative-time-to-live group in nscd.conf. Must be a number in seconds.
- Default: '60'
Settings for suggested-size group in nscd.conf. Must be a number.
- Default: 211
Settings for check-files group in nscd.conf. Must be 'yes' or 'no'.
- Default: 'yes'
Settings for persistent group in nscd.conf. Must be 'yes' or 'no'.
- Default: 'yes'
Settings for shared group in nscd.conf. Must be 'yes' or 'no'.
- Default: 'yes'
Settings for max-db-size group in nscd.conf. Must be a number in bytes.
- Default: 33554432
Settings for auto-propagate group in nscd.conf. Must be 'yes' or 'no'.
- Default: 'yes'
Settings for enable-cache hosts in nscd.conf. Must be 'yes' or 'no'.
- Default: 'yes'
Settings for positive-time-to-live hosts in nscd.conf. Must be a number in seconds.
- Default: '3600'
Settings for negative-time-to-live hosts in nscd.conf. Must be a number in seconds.
- Default: 20
Settings for suggested-size hosts in nscd.conf. Must be a number.
- Default: 211
Settings for check-files hosts in nscd.conf. Must be 'yes' or 'no'.
- Default: 'yes'
Settings for persistent hosts in nscd.conf. Must be 'yes' or 'no'.
- Default: 'yes'
Settings for shared hosts in nscd.conf. Must be 'yes' or 'no'.
- Default: 'yes'
Settings for max-db-size hosts in nscd.conf. Must be a number in bytes.
- Default: 33554432
Settings for enable-cache services in nscd.conf. Must be 'yes' or 'no'.
- Default: 'yes'
Settings for positive-time-to-live services in nscd.conf. Must be a number in seconds.
- Default: '28800'
Settings for negative-time-to-live services in nscd.conf. Must be a number in seconds.
- Default: 20
Settings for suggested-size services in nscd.conf. Must be a number.
- Default: 211
Settings for check-files services in nscd.conf. Must be 'yes' or 'no'.
- Default: 'yes'
Settings for persistent services in nscd.conf. Must be 'yes' or 'no'.
- Default: 'yes'
Settings for shared services in nscd.conf. Must be 'yes' or 'no'.
- Default: 'yes'
Settings for max-db-size services in nscd.conf. Must be a number in bytes.
- Default: 33554432
Settings for enable-cache netgroup in nscd.conf. Must be 'yes' or 'no'.
- Default: 'yes'
Settings for positive-time-to-live netgroup in nscd.conf. Must be a number in seconds.
- Default: '28800'
Settings for negative-time-to-live netgroup in nscd.conf. Must be a number in seconds.
- Default: 20
Settings for suggested-size netgroup in nscd.conf. Must be a number.
- Default: 211
Settings for check-files netgroup in nscd.conf. Must be 'yes' or 'no'.
- Default: 'yes'
Settings for persistent netgroup in nscd.conf. Must be 'yes' or 'no'.
- Default: 'yes'
Settings for shared netgroup in nscd.conf. Must be 'yes' or 'no'.
- Default: 'yes'
Settings for max-db-size netgroup in nscd.conf. Must be a number in bytes.
- Default: 33554432
