nscd
: Configures /etc/ncsd.conf and controls nscd service.nscd::config
: == Class nscd::config Configures nscd.
nscd::install
: installs nscdnscd::service
: controls nscd service
Nscd::Database
: hash of configuration in nscd.confNscd::Database::Settings
: all possible settings an nscd database can have
nscd class.
Note for each database at least the enable-cache
key
must be specified.
class{'nscd':
dbconfigs => {
'passwd' => {'enable-cache' => true,
'maximum-time-to-live' => 100,
},
'group' => {'enable-cache' => true,
'maximum-time-to-live' => 100,
},
}
The following parameters are available in the nscd
class:
pkg_ensure
service_ensure
service_enable
threads
max_threads
paranoia
restart_interval
user
stat_user
debug_level
reload_count
logfile
dbconfig
Data type: Enum['present','absent','latest']
state of nscd package.
Default value: 'present'
Data type: Boolean
state of nscd service ensure
Default value: true
Data type: Boolean
state of nscd service enable
Default value: true
Data type: Integer
number of threads.
Default value: 5
Data type: Integer
maximum number of threads.
Default value: 32
Data type: Boolean
enable internal restart mode.
Default value: false
Data type: Optional[Integer]
nscd internal restart interval
Default value: undef
Data type: String[1]
specify which user should run nscd
Default value: 'root'
Data type: Optional[String[1]]
which users can query statistics
Default value: undef
Data type: Integer
debug level
Default value: 0
Data type: Integer
any many reload attempts to make
Default value: 5
Data type: Optional[Stdlib::UnixPath]
specify a debug log file location.
Default value: undef
Data type: Nscd::Database
configuration for each of the passwd, group, hosts and service database.
== Class nscd::config Configures nscd.
hash of configuration in nscd.conf
Alias of
Struct[{
Optional['passwd'] => Nscd::Database::Settings,
Optional['group'] => Nscd::Database::Settings,
Optional['hosts'] => Nscd::Database::Settings,
Optional['services'] => Nscd::Database::Settings,
Optional['netgroup'] => Nscd::Database::Settings,
}]
all possible settings an nscd database can have
Alias of
Struct[{
'enable-cache' => Boolean,
Optional['positive-time-to-live'] => Integer,
Optional['negative-time-to-live'] => Integer,
Optional['suggested-size'] => Integer,
Optional['check-files'] => Boolean,
Optional['persistent'] => Boolean,
Optional['shared'] => Boolean,
Optional['max-db-size'] => Integer,
Optional['auto-propagate'] => Boolean,
}]