saz / puppet-ntp Goto Github PK
View Code? Open in Web Editor NEWManage NTP client and server via puppet on Debian-, RedHat- and SUSE-based distributions
License: Other
Manage NTP client and server via puppet on Debian-, RedHat- and SUSE-based distributions
License: Other
When i ran puppet agent --test
on puppet 4.10.1
running Centos 7.3.16111
the below problem happens.
===logs==
puppet agent --test
Info: Using configured environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, 'versioncmp' parameter 'b' expects a String value, got Integer at /etc/puppetlabs/code/environments/production/modules/ntp/manifests/params.pp:28:14 on node foreman.raffbrains.com
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
====logs===
i had to modify a line if versioncmp($majdistrelease, 6) >= 0 {
to be if versioncmp($majdistrelease, '6') >= 0 {
Then it worked afterwards.
add some tests and travis-ci magic
Given a Manifest
class { 'ntp':
server_list => ['0.de.pool.ntp.org', '1.de.pool.ntp.org'],
}
When applied, the agent fails:
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Evaluation Error: Comparison of: Undef Value >= Integer, is not possible. Caused by 'Only Strings and Numbers are comparable'. at /etc/puppetlabs/code/environments/production/modules/ntp/manifests/params.pp:28:30 on node x.y.z
Facts from the target System:
operatingsystem: CentOS
operatingsystemmajrelease: '7'
operatingsystemrelease: 7.2.1511
When i try the ntp with ubuntu 12.04 LTS , i see the operation failing and the following is the err i see in console
err: /Stage[main]/Ntp/Service[ntp]: Could not evaluate: Could not find init script or upstart conf file for 'ntp'
NTP versions prior to 4.2.7p230 are recommended to have "disable monitor" in their config. It is not possible to configure it via this module.
It seems that statsdir
is used instead of @statsdir
, which causes deprecation warnings on Puppet 3.
Warning: Variable access via 'statsdir' is deprecated. Use '@statsdir' instead. template[/etc/puppet/ext_modules/ntp/templates/ntp.conf.erb]:18
(at /etc/puppet/ext_modules/ntp/templates/ntp.conf.erb:18:in `block in result')
Warning: Variable access via 'query_networks' is deprecated. Use '@query_networks' instead. template[/etc/puppet/ext_modules/ntp/templates/ntp.conf.erb]:44
(at /etc/puppet/ext_modules/ntp/templates/ntp.conf.erb:44:in `block in result')
"Unknown variable: '::lsbmajdistrelease'" on Centos 6/7 with puppet 5
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Evaluation Error: Comparison of: Undef Value >= String, is not possible. Caused by 'Only Strings and Numbers are comparable'. at /etc/puppet/environments/testing/modules/ntp/manifests/params.pp:28:30 on node wiki.ekt.maschinenbau.tu-darmstadt.de
tested with version ff5b2d0
Config option:
thinker panic 0
is suggested for virtual machines.
Any plan to introduce it?
Thanks
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.