Version information
This version is compatible with:
- Puppet Enterprise 2023.8.x, 2023.7.x, 2023.6.x, 2023.5.x, 2023.4.x, 2023.3.x, 2023.2.x, 2023.1.x, 2023.0.x, 2021.7.x, 2021.6.x, 2021.5.x, 2021.4.x, 2021.3.x, 2021.2.x, 2021.1.x, 2021.0.x, 2019.8.x, 2019.7.x, 2019.5.x, 2019.4.x, 2019.3.x, 2019.2.x, 2019.1.x, 2019.0.x, 2018.1.x, 2017.3.x, 2017.2.x, 2017.1.x, 2016.5.x, 2016.4.x
- Puppet >= 3.0.0
- , , , , , ,
Tasks:
- forcesync
Start using this module
Add this module to your Puppetfile:
mod 'eyp-ntp', '0.1.15'
Learn more about managing modules with a PuppetfileDocumentation
ntp
Table of Contents
Overview
Installs, configures, and manages the NTP service.
Module Description
The ntp module handles installing, configuring, and running NTP. For Ubuntu 18.04 by default uses systemd-timesync. To use NTPD instead, just set force_ntpd to true
Setup
What ntp affects
- NTP config file: /etc/ntp.conf
- ntp package
- ntp service
Setup Requirements
This module requires pluginsync enabled
Beginning with ntp
This module setups NTP to use a given set of servers (it also has some default servers).
If this module is used on a VM, by default, it will set tinker panic to 0
Usage
basic usage:
class { 'ntp':
servers = [
'1.ie.pool.ntp.org',
'0.europe.pool.ntp.org',
'3.europe.pool.ntp.org'
]
}
Reference
classes
ntp
- driftfile: File to use to record the frequency offset of the local clock oscillator
- tinker: Enables or disables system variables used by the clock discipline algorithm.
- tinker_panic: Specifies the panic threshold in seconds. If set to zero, the panic sanity check is disabled and a clock offset of any value will be accepted.
- servers:: List of servers to use
- iburst: When the server is unreachable, send a burst of eight packets instead of the usual one (default: true)
- management options:
- manage_package: Package management (default: true)
- package_ensure: Package status: (default: installed)
- manage_service: Service management (default: true)
- manage_docker_service: Service management on docker containers (default: true)
- service_ensure: Service status: (default: running)
- service_enable: Service enabled on startup: (default: true)
Limitations
Tested on:
- CentOS 5
- CentOS 6
- CentOS 7
- Ubunutu 14.04
- SLES 11 SP3
Development
We are pushing to have acceptance testing in place, so any new feature should have some test to check both presence and absence of any feature
TODO
Nothing yet
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
What are tasks?
Modules can contain tasks that take action outside of a desired state managed by Puppet. It’s perfect for troubleshooting or deploying one-off changes, distributing scripts to run across your infrastructure, or automating changes that need to happen in a particular order as part of an application deployment.
Tasks in this module release
CHANGELOG
0.1.15
- added ntp::cron using ntpdate
0.1.14
- Updated metadata for eyp-systemd 0.2.0
0.1.13
- added support for SLES 12.4
0.1.12
- bugfix: driftfile SuSE
0.1.11
- added support for SLES 12.3
0.1.10
- added support for Ubuntu 18.04
- added timesync as the default NTP client for Ubuntu 18.04, can be enforced to use ntp setting force_ntpd to true
0.1.9
- bugfix: custom statsdir
0.1.8
- added custom default servers for RHEL
0.1.7
- bugfix servers
- bugfix acceptance testing
0.1.6
- typo restrict ipv6
- added default statistics only if statsdir is defined
0.1.5
- allow ntp::servers variable to be empty
- changed driftfile for Ubuntu
0.1.4
- added a variable to be able to restrict access
- Ubuntu 16.04 support
- added ipv4 and ipv6 restrict options as a variable
0.1.3
- changed driftfile for CentOS to /var/lib/ntp/drift
Dependencies
- puppetlabs/stdlib (>= 1.0.0 < 9.9.9)
- eyp/systemd (>= 0.1.44 < 0.4.0)
- eyp/eyplib (>= 0.1.0 < 0.2.0)