https://github.com/voxpupuli/puppet-nscd
Configure /etc/nscd.conf and nscd.
https://github.com/voxpupuli/puppet-nscd
centos-puppet-module debian-puppet-module hacktoberfest linux-puppet-module oraclelinux-puppet-module puppet redhat-puppet-module scientific-puppet-module ubuntu-puppet-module
Last synced: 8 days ago
JSON representation
Configure /etc/nscd.conf and nscd.
- Host: GitHub
- URL: https://github.com/voxpupuli/puppet-nscd
- Owner: voxpupuli
- License: apache-2.0
- Created: 2012-05-21T21:24:04.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2025-06-13T07:39:54.000Z (15 days ago)
- Last Synced: 2025-06-16T07:26:44.508Z (12 days ago)
- Topics: centos-puppet-module, debian-puppet-module, hacktoberfest, linux-puppet-module, oraclelinux-puppet-module, puppet, redhat-puppet-module, scientific-puppet-module, ubuntu-puppet-module
- Language: Ruby
- Homepage: https://forge.puppet.com/puppet/nscd
- Size: 232 KB
- Stars: 1
- Watchers: 41
- Forks: 19
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Puppet module for nscd
[](https://github.com/voxpupuli/puppet-nscd/actions?query=workflow%3ACI)
[](https://github.com/voxpupuli/puppet-nscd/actions/workflows/release.yml)
[](https://forge.puppetlabs.com/puppet/nscd)
[](https://forge.puppetlabs.com/puppet/nscd)
[](https://forge.puppetlabs.com/puppet/nscd)
[](https://forge.puppetlabs.com/puppet/nscd)
[](https://www.puppetmodule.info/m/puppet-nscd)
[](LICENSE)## Overview
Configures `/etc/nscd.conf` and controls nscd service.
## Examples
Including the class should configure nscd with default OS configuration.
```puppet
include nscd
```A full set of configurations that can be set.
```puppet
class { 'nscd':
pkg_ensure => 'latest',
service_ensure => true,
service_enable => true,
stat_user => 'nobody',
threads => 10,
max_threads => 22,
paranoia => true,
restart_interval => 100,
debug_level => 5,
reload_count => 20,
logfile => '/var/log/nscd_log.log',
dbconfig => {
'passwd' => {
'enable-cache' => true,
'positive-time-to-live' => 100,
'negative-time-to-live' => 23,
'suggested-size' => 1234567,
'check-files' => true,
'persistent' => true,
'shared' => true,
'max-db-size' => 12345678900,
'auto-propagate' => true,
},
'group' => {
'enable-cache' => true,
'positive-time-to-live' => 100,
'negative-time-to-live' => 23,
'suggested-size' => 1234567,
'check-files' => true,
'persistent' => true,
'shared' => true,
'max-db-size' => 12345678900,
'auto-propagate' => true,
},
'hosts' => {
'enable-cache' => true,
'positive-time-to-live' => 100,
'negative-time-to-live' => 23,
'suggested-size' => 1234567,
'check-files' => true,
'persistent' => true,
'shared' => true,
'max-db-size' => 12345678900,
'auto-propagate' => true,
},
'services' => {
'enable-cache' => true,
'positive-time-to-live' => 100,
'negative-time-to-live' => 23,
'suggested-size' => 1234567,
'check-files' => true,
'persistent' => true,
'shared' => true,
'max-db-size' => 12345678900,
'auto-propagate' => true,
},
'netgroup' => {
'enable-cache' => true,
'positive-time-to-live' => 100,
'negative-time-to-live' => 23,
'suggested-size' => 1234567,
'check-files' => true,
'persistent' => true,
'shared' => true,
'max-db-size' => 12345678900,
'auto-propagate' => true,
},
},
}
```The only compulsory key per database is `enable-cache`. If
false also subsequent keys for that database will be ignored.The `dbconfig` parameter is configured with a `lookup_option`
of a deep merge. So particular settings can be appended or overridden
from hiera.```yaml
nscd::dbconfig:
netgroup:
check-files: false
services:
enable-cache: false
```## Usage
Generated puppet strings documentation with examples is available from
[REFERENCE.md](REFERENCE.md)## Authors
* Vox Pupuli
* Steve Traylen