Version information
released Sep 12th 2023
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 >=2.7.20 <9.0.0
- Gentoo , ,
Start using this module
Add this module to your Puppetfile:
mod 'thias-ntp', '1.1.10'
Learn more about managing modules with a PuppetfileDocumentation
thias/ntp — version 1.1.10 Sep 12th 2023
puppet-ntp
Overview
Install, enable and configure the Network Time Protocol daemon.
ntp
: Class to install and enable ntpd.
The module also supports changing the logging to go directly to a file instead of syslog, and creates a logrotate entry for that file (see example below).
Examples
Basic enabling of ntpd with the default servers :
include '::ntp'
Advanced example, using only hieradata :
classes:
- '::ntp'
ntp::logfile: '/var/log/ntpd.log'
ntp::server:
- '0.ntp.example.com'
- '1.ntp.example.com'
- '2.ntp.example.com'
ntp::restrict:
- 'default kod nomodify notrap nopeer noquery'
2023-09-12 - 1.1.10
- Add support for RHEL9.
2019-06-04 - 1.1.9
- Add support for RHEL8.
2019-01-21 - 1.1.8
- Add support for allow parameter.
2015-10-15 - 1.1.7
- Require package for conf files, to better order initial setup.
2015-02-25 - 1.1.6
- Fix for undef variable under strict mode (#7 @robinbowes).
- Change to using osfamily fact (#8 @robinbowes).
- Stop and disable ntpd when using chronyd (#5).
2014-11-11 - 1.1.5
- Add support for CentOS 7 (@level99).
2014-04-29 - 1.1.4
- Add support for RHEL7 (chrony).
2014-01-29 - 1.1.3
- Add support for tinker options.
- Add missing owner, group and mode for files.
2013-10-01 - 1.1.2
- Fix missing @ prefix in the templates.
2013-10-01 - 1.1.0
- Update README to scope class name and quote string parameters.
- Add support for Gentoo, using its own ntp.conf template.
- No longer default to changing the logfile, stick to original defaults.
2013-05-31 - 1.0.0
- Initial module release, reinvent the wheel, but with hiera in mind.
Copyright (C) 2013-2015 Matthias Saou Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.