ghoneycutt / puppet-module-ntp Goto Github PK
View Code? Open in Web Editor NEWPuppet module to manage ntp
License: Other
Puppet module to manage ntp
License: Other
Ideas in PR #69 on what should change
currently is
suse instead of Suse
debian instead of Debian
etc..
We are missing tests to ensure that failure happens on unsupported versions of supported distro's
Uses strings for booleans. Should use booleans and check for strings and convert if necessary. See the following example.
https://github.com/ghoneycutt/puppet-module-common/blob/master/manifests/init.pp#L42
Uses ::data design pattern from 2.7 days. Update to remove ::data and have all the options as parameters in the main ntp class.
Validate that these are absolute paths. See https://github.com/puppetlabs/puppetlabs-stdlib/tree/3.2.0
The module is using restrict options that are incompatible with Solaris 10. Because of that the complete line for restrict is ignored leading to an completly unrestricted NTP server.
Error messages show that the restrict lines are ignored (at all)
Feb 5 15:49:21 sol10 xntpd[35808]: [ID 504011 daemon.error] getnetnum: "-4" invalid host number, line ignored Feb 5 15:49:21 sol10 xntpd[35808]: [ID 504011 daemon.error] getnetnum: "-6" invalid host number, line ignored Feb 5 15:49:21 sol10 xntpd[35808]: [ID 504011 daemon.error] getnetnum: "::1" invalid host number, line ignored Feb 5 15:49:21 sol10 xntpd[35808]: [ID 269952 daemon.error] can't open key file /etc/inet/ntp.keys: No such file or directory Feb 5 15:49:21 sol10 xntpd[35808]: [ID 241925 daemon.error] configure: keyword "tinker" unknown, line ignored Feb 5 15:49:24 sol10 xntpd[35808]: [ID 373468 daemon.error] adj_frequency: ntp_adjtime failed: Not owner
To restrict ntp on Solaris 10 these line would be sufficient:
restrict default noserve noquery restrict 127.0.0.1
Should I create a PR with (new) valid defaults for Solaris 10 ?
Should include compatibility, parameters, etc.
If you want to use /etc/ntp/step-tickers, you need /etc/ntp, though your distributions package may not include that directory. Our code should ensure the path for step-tickers is present.
Section for $keys got copy pasted from $driftfile and have irritating lefttovers.
I'm getting the following "rake spec" error from v2.2.3 and current master. v2.2.2 had no errors.
ntp with package_name set to an array
Failure/Error: it { should compile.with_all_deps }
NameError:
undefined local variable or method `compile' for #RSpec::Core::ExampleGroup::Nested_1::Nested_21::Nested_1:0x7fb4df7d2698
ntp with package_name set to a string
Failure/Error: it { should compile.with_all_deps }
NameError:
undefined local variable or method `compile' for #RSpec::Core::ExampleGroup::Nested_1::Nested_21::Nested_2:0x7fb4df47eb18
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.