voxpupuli / puppet-nscd Goto Github PK
View Code? Open in Web Editor NEWConfigure /etc/nscd.conf and nscd.
Home Page: https://forge.puppet.com/puppet/nscd
License: Apache License 2.0
Configure /etc/nscd.conf and nscd.
Home Page: https://forge.puppet.com/puppet/nscd
License: Apache License 2.0
This would be preferable to
if ! ( $pkg_ensure in ['present','absent','latest'] ) {
fail('pkg_ensure must be present, absent or latest')
}
The module supports customization of only a few of nscd's configuration properties. All others are assigned hardcoded values.
The module should provide means to manage substantially all nscd configuration properties -- both global and service-specific -- to user-chosen values.
Currently positive-time-to-live is hardcoded to 3600s make it (and others) a configuration.
As above.
Module cannot be installed with librarian-puppet because the metadata.json fails validation.
version_requirement
string in metadata.json contains 2 spaces between operator & version, which make validation fails:
{
//..
"dependencies": [
{
"name": "puppetlabs-stdlib",
"version_requirement": ">= 4.13.1 < 6.0.0"
}
],
//...
}
mod 'puppet-nscd'
Librarian puppet fails
Librarian succeeds & module is installed.
# ...
puppetdev.jouve.com: [Librarian] Checking puppet-nscd/1.0.0 <http://vm-puppet-srv.intra.jouve.com>
puppetdev.jouve.com: /opt/puppetlabs/puppet/lib/ruby/2.1.0/rubygems/requirement.rb:86:in `parse': Illformed requirement [">= 4.13.1 < 6.0.0"] (Gem::Requirement::BadRequirementError)
#...
This isn't considered good practice.
See https://docs.puppet.com/puppet/4.10/lang_classes.html#inheritance
Version 3 is a new major version of puppet/nscd. For most use cases, it is backwards incompatible and users will need to modify their declarations of the nscd
class.
The previous parameters such as
are now all removed and instead all database parameters are specified with the
dbconfig parameter. e.g.
class{'nscd':
dbconfig => {
'passwd' => {
'enable-cache' => true,
'positive-time-to-live' => 500,
'negative-time-to-live' => 500,
},
'group' => {
'enable-cache' => true,
'positive-time-to-live' => 500,
'negative-time-to-live' => 500,
},
},
}
The advantage of this breaking change that profits from newer puppet features is the module is much easier to maintain especially with respect to multiple OSes
It's fully EOL now, so maybe tidy up this.
In the metadata.json
you see:
"dependencies": [
{
"name": "puppetlabs-stdlib",
"version_requirement": ">= 4.13.1 < 9.0.0"
}
],
The name of the module is incorrect. It should be "puppetlabs/stdlib" with a slash.
I realize that we can pull this from git, but would you mind pushing a new release with the changes from 11 months ago? :)
Thanks in advance,
Tommy
Obviously these would still need to be rendered as 'yes' or 'no' in the template.
Perhaps even consider a breaking change and allowing only booleans?
This is a breaking change for people using the keys currently being looked up.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.