nscd
: Class to manage nscd, Linuxs 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.
To use this module simply include ::nscd
This module has been tested to work on the following systems:
- Amazon Linux 2015
- Amazon Linux 2016
- Amazon Linux 2017
- Debian 6
- EL 5
- EL 6
- EL 7
- EL 8
- EL 9
- Solaris 10
- Suse 10
- Suse 11
- Suse 12
- Suse 15
- OpenSuse 13.1
- Ubuntu 12.04 LTS
- Ubuntu 14.04 LTS
- Ubuntu 16.04 LTS
- Ubuntu 18.04 LTS
- Ubuntu 20.04 LTS
- Ubuntu 22.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/
== Class: nscd
The following parameters are available in the nscd
class:
audit_user_check_files
audit_user_enable_cache
audit_user_keep_hot_count
audit_user_negative_time_to_live
audit_user_positive_time_to_live
auth_attr_check_files
auth_attr_enable_cache
auth_attr_keep_hot_count
auth_attr_negative_time_to_live
auth_attr_positive_time_to_live
bootparams_check_files
bootparams_enable_cache
bootparams_keep_hot_count
bootparams_negative_time_to_live
bootparams_positive_time_to_live
config_group
config_mode
config_path
config_owner
debug_level
enable_db_audit_user
enable_db_auth_attr
enable_db_bootparams
enable_db_ethers
enable_db_exec_attr
enable_db_group
enable_db_hosts
enable_db_ipnodes
enable_db_netgroup
enable_db_netmasks
enable_db_networks
enable_db_passwd
enable_db_printers
enable_db_prof_attr
enable_db_project
enable_db_protocols
enable_db_rpc
enable_db_services
enable_db_tnrhdb
enable_db_tnrhtp
enable_db_user_attr
enable_opt_auto_propagate
ethers_check_files
ethers_enable_cache
ethers_keep_hot_count
ethers_negative_time_to_live
ethers_positive_time_to_live
exec_attr_check_files
exec_attr_enable_cache
exec_attr_keep_hot_count
exec_attr_negative_time_to_live
exec_attr_positive_time_to_live
group_auto_propagate
group_check_files
group_enable_cache
group_keep_hot_count
group_max_db_size
group_negative_time_to_live
group_persistent
group_positive_time_to_live
group_shared
group_suggested_size
hosts_check_files
hosts_enable_cache
hosts_keep_hot_count
hosts_max_db_size
hosts_negative_time_to_live
hosts_persistent
hosts_positive_time_to_live
hosts_shared
hosts_suggested_size
ipnodes_check_files
ipnodes_enable_cache
ipnodes_keep_hot_count
ipnodes_negative_time_to_live
ipnodes_positive_time_to_live
logfile
max_threads
netgroup_check_files
netgroup_enable_cache
netgroup_max_db_size
netgroup_negative_time_to_live
netgroup_persistent
netgroup_positive_time_to_live
netgroup_shared
netgroup_suggested_size
netmasks_check_files
netmasks_enable_cache
netmasks_keep_hot_count
netmasks_negative_time_to_live
netmasks_positive_time_to_live
networks_check_files
networks_enable_cache
networks_keep_hot_count
networks_negative_time_to_live
networks_positive_time_to_live
package_adminfile
package_ensure
package_name
package_source
paranoia
passwd_auto_propagate
passwd_check_files
passwd_enable_cache
passwd_keep_hot_count
passwd_max_db_size
passwd_negative_time_to_live
passwd_persistent
passwd_positive_time_to_live
passwd_shared
passwd_suggested_size
printers_check_files
printers_enable_cache
printers_keep_hot_count
printers_negative_time_to_live
printers_positive_time_to_live
prof_attr_check_files
prof_attr_enable_cache
prof_attr_keep_hot_count
prof_attr_negative_time_to_live
prof_attr_positive_time_to_live
project_check_files
project_enable_cache
project_keep_hot_count
project_negative_time_to_live
project_positive_time_to_live
protocols_check_files
protocols_enable_cache
protocols_keep_hot_count
protocols_negative_time_to_live
protocols_positive_time_to_live
reload_count
restart_interval
rpc_check_files
rpc_enable_cache
rpc_keep_hot_count
rpc_negative_time_to_live
rpc_positive_time_to_live
server_user
service_enable
service_ensure
service_name
service_provider
services_check_files
services_enable_cache
services_keep_hot_count
services_max_db_size
services_negative_time_to_live
services_persistent
services_positive_time_to_live
services_shared
services_suggested_size
stat_user
threads
tnrhdb_check_files
tnrhdb_enable_cache
tnrhdb_keep_hot_count
tnrhdb_negative_time_to_live
tnrhdb_positive_time_to_live
tnrhtp_check_files
tnrhtp_enable_cache
tnrhtp_keep_hot_count
tnrhtp_negative_time_to_live
tnrhtp_positive_time_to_live
user_attr_check_files
user_attr_enable_cache
user_attr_keep_hot_count
user_attr_negative_time_to_live
user_attr_positive_time_to_live
Data type: Enum['yes', 'no']
Settings for check-files audit_user in nscd.conf.
Default value: 'yes'
Data type: Enum['yes', 'no']
Settings for enable-cache audit_user in nscd.conf.
Default value: 'yes'
Data type: Integer
Settings for keep-hot-count audit_user in nscd.conf.
Default value: 2048
Data type: Integer
Settings for negative-time-to-live audit_user in nscd.conf.
Default value: 20
Data type: Integer
Settings for positive-time-to-live audit_user in nscd.conf.
Default value: 3600
Data type: Enum['yes', 'no']
Settings for check-files auth_attr in nscd.conf.
Default value: 'yes'
Data type: Enum['yes', 'no']
Settings for enable-cache auth_attr in nscd.conf.
Default value: 'yes'
Data type: Integer
Settings for keep-hot-count auth_attr in nscd.conf.
Default value: 2048
Data type: Integer
Settings for negative-time-to-live auth_attr in nscd.conf. Must be a number in seconds.
Default value: 20
Data type: Integer
Settings for positive-time-to-live auth_attr in nscd.conf. Must be a number in seconds.
Default value: 3600
Data type: Enum['yes', 'no']
Settings for check-files bootparams in nscd.conf.
Default value: 'yes'
Data type: Enum['yes', 'no']
Settings for enable-cache bootparams in nscd.conf.
Default value: 'yes'
Data type: Integer
Settings for keep-hot-count bootparams in nscd.conf.
Default value: 2048
Data type: Integer
Settings for negative-time-to-live bootparams in nscd.conf. Must be a number in seconds.
Default value: 20
Data type: Integer
Settings for positive-time-to-live bootparams in nscd.conf. Must be a number in seconds.
Default value: 3600
Data type: String[1]
Group of nscd.conf.
Default value: 'root'
Data type: Stdlib::Filemode
Mode of nscd.conf.
Default value: '0644'
Data type: Stdlib::Absolutepath
Path to nscd.conf.
Default value: '/etc/nscd.conf'
Data type: String[1]
Owner of nscd.conf.
Default value: 'root'
Data type: Integer
Setting for debug-level in nscd.conf. See nscd.conf(5).
Default value: 0
Data type: Boolean
Settings for enable_db_audit_user in nscd.conf.
Default value: false
Data type: Boolean
Settings for enable_db_auth_attr in nscd.conf.
Default value: false
Data type: Boolean
Settings for enable_db_bootparams in nscd.conf.
Default value: false
Data type: Boolean
Settings for enable_db_ethers in nscd.conf.
Default value: false
Data type: Boolean
Settings for enable_db_exec_attr in nscd.conf.
Default value: false
Data type: Boolean
Switch to show group section in nscd.conf.
Default value: false
Data type: Boolean
Switch to show hosts section in nscd.conf.
Default value: false
Data type: Boolean
Settings for enable_db_ipnodes in nscd.conf.
Default value: false
Data type: Boolean
Switch to show netgroup section in nscd.conf.
Default value: false
Data type: Boolean
Settings for enable_db_netmasks in nscd.conf.
Default value: false
Data type: Boolean
Settings for enable_db_networks in nscd.conf.
Default value: false
Data type: Boolean
Switch to show passwd section in nscd.conf.
Default value: false
Data type: Boolean
Settings for enable_db_printers in nscd.conf.
Default value: false
Data type: Boolean
Settings for enable_db_prof_attr in nscd.conf.
Default value: false
Data type: Boolean
Settings for enable_db_project in nscd.conf.
Default value: false
Data type: Boolean
Settings for enable_db_protocols in nscd.conf.
Default value: false
Data type: Boolean
Settings for enable_db_rpc in nscd.conf.
Default value: false
Data type: Boolean
Switch to show services section in nscd.conf.
Default value: false
Data type: Boolean
Settings for enable_db_tnrhdb in nscd.conf.
Default value: false
Data type: Boolean
Settings for enable_db_tnrhtp in nscd.conf.
Default value: false
Data type: Boolean
Settings for enable_db_user_attr in nscd.conf.
Default value: false
Data type: Boolean
Settings for enable_opt_auto_propagate in nscd.conf.
Default value: false
Data type: Enum['yes', 'no']
Settings for check-files ethers in nscd.conf.
Default value: 'yes'
Data type: Enum['yes', 'no']
Settings for enable-cache ethers in nscd.conf.
Default value: 'yes'
Data type: Integer
Settings for keep-hot-count ethers in nscd.conf.
Default value: 2048
Data type: Integer
Settings for negative-time-to-live ethers in nscd.conf.
Default value: 20
Data type: Integer
Settings for positive-time-to-live ethers in nscd.conf. Must be a number in seconds.
Default value: 3600
Data type: Enum['yes', 'no']
Settings for check-files exec_attr in nscd.conf.
Default value: 'yes'
Data type: Enum['yes', 'no']
Settings for enable-cache exec_attr in nscd.conf.
Default value: 'yes'
Data type: Integer
Settings for keep-hot-count exec_attr in nscd.conf.
Default value: 2048
Data type: Integer
Settings for negative-time-to-live exec_attr in nscd.conf.
Default value: 20
Data type: Integer
Settings for positive-time-to-live exec_attr in nscd.conf. Must be a number in seconds.
Default value: 3600
Data type: Enum['yes', 'no']
Settings for auto-propagate group in nscd.conf.
Default value: 'yes'
Data type: Enum['yes', 'no']
Settings for check-files group in nscd.conf.
Default value: 'yes'
Data type: Enum['yes', 'no']
Settings for enable-cache netgroup in nscd.conf.
Default value: 'yes'
Data type: Integer
Settings for keep-hot-count group in nscd.conf.
Default value: 2048
Data type: Integer
Settings for max-db-size group in nscd.conf.
Default value: 33554432
Data type: Integer
Settings for negative-time-to-live group in nscd.conf.
Default value: 60
Data type: Enum['yes', 'no']
Settings for persistent group in nscd.conf.
Default value: 'yes'
Data type: Integer
Settings for positive-time-to-live group in nscd.conf. Must be a number in seconds.
Default value: 3600
Data type: Enum['yes', 'no']
Settings for shared group in nscd.conf.
Default value: 'yes'
Data type: Integer
Settings for suggested-size group in nscd.conf.
Default value: 211
Data type: Enum['yes', 'no']
Settings for check-files hosts in nscd.conf.
Default value: 'yes'
Data type: Enum['yes', 'no']
Settings for enable-cache hosts in nscd.conf.
Default value: 'yes'
Data type: Integer
Settings for keep-hot-count hosts in nscd.conf.
Default value: 2048
Data type: Integer
Settings for max-db-size hosts in nscd.conf. Must be a number in bytes.
Default value: 33554432
Data type: Integer
Settings for negative-time-to-live hosts in nscd.conf. Must be a number in seconds.
Default value: 20
Data type: Enum['yes', 'no']
Settings for persistent hosts in nscd.conf.
Default value: 'yes'
Data type: Integer
Settings for positive-time-to-live hosts in nscd.conf. Must be a number in seconds.
Default value: 3600
Data type: Enum['yes', 'no']
Settings for shared hosts in nscd.conf.
Default value: 'yes'
Data type: Integer
Settings for suggested-size hosts in nscd.conf.
Default value: 211
Data type: Enum['yes', 'no']
Settings for check-files ipnodes in nscd.conf.
Default value: 'yes'
Data type: Enum['yes', 'no']
Settings for enable-cache ipnodes in nscd.conf.
Default value: 'yes'
Data type: Integer
Settings for keep-hot-count ipnodes in nscd.conf.
Default value: 2048
Data type: Integer
Settings for negative-time-to-live ipnodes in nscd.conf. Must be a number in seconds.
Default value: 20
Data type: Integer
Settings for positive-time-to-live ipnodes in nscd.conf. Must be a number in seconds.
Default value: 3600
Data type: Stdlib::Absolutepath
Setting for logfile in nscd.conf. See nscd.conf(5).
Default value: '/var/log/nscd.log'
Data type: Integer
Setting for max-threads in nscd.conf. See nscd.conf(5).
Default value: 32
Data type: Enum['yes', 'no']
Settings for check-files netgroup in nscd.conf.
Default value: 'yes'
Data type: Enum['yes', 'no']
Settings for enable-cache netgroup in nscd.conf.
Default value: 'yes'
Data type: Integer
Settings for max-db-size netgroup in nscd.conf. Must be a number in bytes.
Default value: 33554432
Data type: Integer
Settings for negative-time-to-live netgroup in nscd.conf. Must be a number in seconds.
Default value: 20
Data type: Enum['yes', 'no']
Settings for persistent netgroup in nscd.conf.
Default value: 'yes'
Data type: Integer
Settings for positive-time-to-live netgroup in nscd.conf. Must be a number in seconds.
Default value: 28800
Data type: Enum['yes', 'no']
Settings for shared netgroup in nscd.conf.
Default value: 'yes'
Data type: Integer
Settings for suggested-size netgroup in nscd.conf.
Default value: 211
Data type: Enum['yes', 'no']
Settings for check-files netmasks in nscd.conf.
Default value: 'yes'
Data type: Enum['yes', 'no']
Settings for enable-cache netmasks in nscd.conf.
Default value: 'yes'
Data type: Integer
Settings for keep-hot-count netmasks in nscd.conf.
Default value: 2048
Data type: Integer
Settings for negative-time-to-live netmasks in nscd.conf. Must be a number in seconds.
Default value: 20
Data type: Integer
Settings for positive-time-to-live netmasks in nscd.conf. Must be a number in seconds.
Default value: 3600
Data type: Enum['yes', 'no']
Settings for check-files networks in nscd.conf.
Default value: 'yes'
Data type: Enum['yes', 'no']
Settings for enable-cache networks in nscd.conf.
Default value: 'yes'
Data type: Integer
Settings for keep-hot-count networks in nscd.conf.
Default value: 2048
Data type: Integer
Settings for negative-time-to-live networks in nscd.conf. Must be a number in seconds.
Default value: 20
Data type: Integer
Settings for positive-time-to-live networks in nscd.conf. Must be a number in seconds.
Default value: 3600
Data type: Optional[Stdlib::Absolutepath]
Solaris specific adminfile attribute of package resource.
Default value: undef
Data type: Enum['present', 'installed', 'absent']
Solaris specific source attribute of package resource.
Default value: 'present'
Data type: Array
Array for name of package(s).
Default value: ['nscd']
Data type: Optional[Stdlib::Absolutepath]
Solaris specific source attribute of package resource.
Default value: undef
Data type: Enum['yes', 'no']
Setting for paranoia in nscd.conf. See nscd.conf(5).
Default value: 'no'
Data type: Enum['yes', 'no']
Settings for auto-propagate passwd in nscd.conf.
Default value: 'yes'
Data type: Enum['yes', 'no']
Settings for check-files passwd in nscd.conf.
Default value: 'yes'
Data type: Enum['yes', 'no']
Settings for enable-cache passwd in nscd.conf.
Default value: 'yes'
Data type: Integer
Settings for keep-hot-count passwd in nscd.conf.
Default value: 2048
Data type: Integer
Settings for max-db-size passwd in nscd.conf.
Default value: 33554432
Data type: Integer
Settings for negative-time-to-live passwd in nscd.conf. Must be a number in seconds.
Default value: 20
Data type: Enum['yes', 'no']
Settings for persistent passwd in nscd.conf.
Default value: 'yes'
Data type: Integer
Settings for positive-time-to-live passwd in nscd.conf. Must be a number in seconds.
Default value: 600
Data type: Enum['yes', 'no']
Settings for shared passwd in nscd.conf.
Default value: 'yes'
Data type: Integer
Settings for suggested-size passwd in nscd.conf.
Default value: 211
Data type: Enum['yes', 'no']
Settings for check-files printers in nscd.conf.
Default value: 'yes'
Data type: Enum['yes', 'no']
Settings for enable-cache printers in nscd.conf.
Default value: 'yes'
Data type: Integer
Settings for keep-hot-count printers in nscd.conf.
Default value: 2048
Data type: Integer
Settings for negative-time-to-live printers in nscd.conf. Must be a number in seconds.
Default value: 20
Data type: Integer
Settings for positive-time-to-live printers in nscd.conf. Must be a number in seconds.
Default value: 3600
Data type: Enum['yes', 'no']
Settings for check-files prof_attr in nscd.conf.
Default value: 'yes'
Data type: Enum['yes', 'no']
Settings for enable-cache prof_attr in nscd.conf.
Default value: 'yes'
Data type: Integer
Settings for keep-hot-count prof_attr in nscd.conf.
Default value: 2048
Data type: Integer
Settings for negative-time-to-live prof_attr in nscd.conf. Must be a number in seconds.
Default value: 20
Data type: Integer
Settings for positive-time-to-live prof_attr in nscd.conf. Must be a number in seconds.
Default value: 3600
Data type: Enum['yes', 'no']
Settings for check-files project in nscd.conf.
Default value: 'yes'
Data type: Enum['yes', 'no']
Settings for enable-cache project in nscd.conf.
Default value: 'yes'
Data type: Integer
Settings for keep-hot-count project in nscd.conf.
Default value: 2048
Data type: Integer
Settings for negative-time-to-live project in nscd.conf. Must be a number in seconds.
Default value: 20
Data type: Integer
Settings for positive-time-to-live project in nscd.conf. Must be a number in seconds.
Default value: 3600
Data type: Enum['yes', 'no']
Settings for check-files protocols in nscd.conf.
Default value: 'yes'
Data type: Enum['yes', 'no']
Settings for enable-cache protocols in nscd.conf.
Default value: 'yes'
Data type: Integer
Settings for keep-hot-count protocols in nscd.conf.
Default value: 2048
Data type: Integer
Settings for negative-time-to-live protocols in nscd.conf. Must be a number in seconds.
Default value: 20
Data type: Integer
Settings for positive-time-to-live protocols in nscd.conf. Must be a number in seconds.
Default value: 3600
Data type: Variant[Integer, Enum['unlimited']]
Settings for reload-count in nscd.conf. See nscd.conf(5).
Default value: 5
Data type: Integer
Setting for restart-interval in nscd.conf. See nscd.conf(5).
Default value: 3600
Data type: Enum['yes', 'no']
Settings for check-files rpc in nscd.conf.
Default value: 'yes'
Data type: Enum['yes', 'no']
Settings for enable-cache rpc in nscd.conf.
Default value: 'yes'
Data type: Integer
Settings for keep-hot-count rpc in nscd.conf.
Default value: 2048
Data type: Integer
Settings for negative-time-to-live rpc in nscd.conf. Must be a number in seconds.
Default value: 20
Data type: Integer
Settings for positive-time-to-live rpc in nscd.conf. Must be a number in seconds.
Default value: 3600
Data type: Optional[String[1]]
Setting for server-user in nscd.conf. See nscd.conf(5).
Default value: undef
Data type: Boolean
Value of enable attribute of nscd service. This determines if the service will start at boot or not.
Default value: true
Data type: Stdlib::Ensure::Service
Value of ensure attribute of nscd service.
Default value: 'running'
Data type: String[1]
Name of service(s)
Default value: 'nscd'
Data type: Optional[String[1]]
String for value of the provider attribute of nscd service. Specifying here will allow you to change the platforms default.
Default value: undef
Data type: Enum['yes', 'no']
Settings for check-files services in nscd.conf.
Default value: 'yes'
Data type: Enum['yes', 'no']
Settings for enable-cache services in nscd.conf.
Default value: 'yes'
Data type: Integer
Settings for keep-hot-count services in nscd.conf.
Default value: 2048
Data type: Integer
Settings for max-db-size servicess in nscd.conf. Must be a number in bytes.
Default value: 33554432
Data type: Integer
Settings for negative-time-to-live services in nscd.conf. Must be a number in seconds.
Default value: 20
Data type: Enum['yes', 'no']
Settings for persistent services in nscd.conf.
Default value: 'yes'
Data type: Integer
Settings for positive-time-to-live services in nscd.conf. Must be a number in seconds.
Default value: 28800
Data type: Enum['yes', 'no']
Settings for shared services in nscd.conf.
Default value: 'yes'
Data type: Integer
Settings for suggested-size services in nscd.conf.
Default value: 211
Data type: String[1]
Setting for stat-user in nscd.conf. See nscd.conf(5).
Default value: 'root'
Data type: Integer
Setting for threads in nscd.conf. See nscd.conf(5).
Default value: 5
Data type: Enum['yes', 'no']
Settings for check-files tnrhdb in nscd.conf.
Default value: 'yes'
Data type: Enum['yes', 'no']
Settings for enable-cache tnrhdb in nscd.conf.
Default value: 'yes'
Data type: Integer
Settings for keep-hot-count tnrhdb in nscd.conf.
Default value: 2048
Data type: Integer
Settings for negative-time-to-live tnrhdb in nscd.conf. Must be a number in seconds.
Default value: 20
Data type: Integer
Settings for positive-time-to-live tnrhdb in nscd.conf. Must be a number in seconds.
Default value: 3600
Data type: Enum['yes', 'no']
Settings for check-files tnrhdb in nscd.conf.
Default value: 'yes'
Data type: Enum['yes', 'no']
Settings for enable-cache tnrhdb in nscd.conf.
Default value: 'yes'
Data type: Integer
Settings for keep-hot-count tnrhdb in nscd.conf.
Default value: 2048
Data type: Integer
Settings for negative-time-to-live tnrhdb in nscd.conf. Must be a number in seconds.
Default value: 20
Data type: Integer
Settings for positive-time-to-live tnrhdb in nscd.conf. Must be a number in seconds.
Default value: 3600
Data type: Enum['yes', 'no']
Settings for check-files user_attr in nscd.conf.
Default value: 'yes'
Data type: Enum['yes', 'no']
Settings for enable-cache user_attr in nscd.conf.
Default value: 'yes'
Data type: Integer
Settings for keep-hot-count user_attr in nscd.conf.
Default value: 2048
Data type: Integer
Settings for negative-time-to-live user_attr in nscd.conf. Must be a number in seconds.
Default value: 20
Data type: Integer
Settings for positive-time-to-live user_attr in nscd.conf. Must be a number in seconds.
Default value: 3600