Forge Home

ntp

Manage NTP

29,593 downloads

6,048 latest version

5.0 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Support the Puppet Community by contributing to this module

You are welcome to contribute to this module by suggesting new features, currency updates, or fixes. Every contribution is valuable to help ensure that the module remains compatible with the latest Puppet versions and continues to meet community needs. Complete the following steps:

  1. Review the module’s contribution guidelines and any licenses. Ensure that your planned contribution aligns with the author’s standards and any legal requirements.
  2. Fork the repository on GitHub, make changes on a branch of your fork, and submit a pull request. The pull request must clearly document your proposed change.

For questions about updating the module, contact the module’s author.

Version information

  • 4.3.0 (latest)
  • 4.2.0
  • 4.1.1
  • 4.1.0
  • 4.0.0
  • 3.7.0
  • 3.6.1
  • 3.6.0
  • 3.5.1
  • 3.5.0
  • 3.4.0
  • 3.3.1
  • 3.2.2
  • 3.2.1
  • 3.1.1
  • 3.1.0
  • 3.0.0
  • 2.2.3
  • 2.2.2
  • 2.2.1
  • 2.1.2
  • 2.1.0
  • 2.0.3
  • 2.0.1
  • 1.0.0 (deleted)
released Jan 17th 2019
This version is compatible with:
  • Puppet Enterprise 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 < 7.0.0
  • , , , , , , , ,

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'ghoneycutt-ntp', '4.3.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add ghoneycutt-ntp
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install ghoneycutt-ntp --version 4.3.0

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

ghoneycutt/ntp — version 4.3.0 Jan 17th 2019

ntp module

===

Puppet module to manage NTP

Build Status

===

Compatibility

This module is supported on the following systems with Puppet v3 and v4 with Ruby versions 1.8.7, 1.9.3, 2.0.0, 2.1.0 and 2.3.1.

  • Debian 6
  • EL 5
  • EL 6
  • EL 7
  • Solaris 9
  • Solaris 10
  • Solaris 11
  • Suse 9
  • Suse 10
  • Suse 11
  • Suse 12
  • Ubuntu 12.04 LTS

===

Parameters

See ntp.conf(5) for more information regarding settings.

package_name

String or Array of the related ntp packages. 'USE_DEFAULTS' will choose the appropriate default for the system.

  • Default: 'USE_DEFAULTS'

package_latest

Use the latest version of the package.

  • Default: false

package_source

The source for packages on Solaris 5.10 and earlier.

  • Default: /var/spool/pkg

package_adminfile

Path to the admin file used for installation on Solaris 5.10 and earlier.

config_file_owner

ntp.conf's owner

  • Default: root

config_file_group

ntp.conf's group

  • Default: root

config_file_mode

ntp.conf's mode

  • Default: 0644

sysconfig_path

Path to the ntp sysconfig config file.

  • Default: 'USE_DEFAULTS'

sysconfig_options

String with startup options to pass to ntp.

  • Default: 'USE_DEFAULTS'

step_tickers_ensure

Ensure step tickers file. Valid values are 'present' and 'absent'.

  • Default: based on OS

driftfile

Path of the drift file. String with absolute path. Set to '' to disable drift file usage. 'USE_DEFAULTS' will choose the appropriate default for the system.

  • Default: 'USE_DEFAULTS'

service_running

If service should be running

  • Default: true

service_hasstatus

Service has a status option

  • Default: true

service_hasrestart

Service has a restart option

  • Default: true

keys

Path of the symmetric key file. See ntpd(1). Set to '' to disable drift file usage. 'USE_DEFAULTS' will choose the appropriate default for the system.

  • Default: 'USE_DEFAULTS'

servers

Array of pools to check time against.

  • Default: NTP's default pools in the US

server_options

Extra options to provide to ntp servers

  • Default: none

peers

String or Array or Hash of peer servers.

For the Hash, the following keys can be set: host and comment. See example below.

  • Default: 'UNSET'

restrict_localhost

Array with options to provide to access control configuration (restrict) in ntp.conf. 'USE_DEFAULTS' will choose the appropriate default for the system to allow localhost access only.

  • Default: 'USE_DEFAULTS'

restrict_options

Array with options to provide to access control configuration (restrict) in ntp.conf. 'USE_DEFAULTS' will choose the appropriate default for the system.

For backward compatibility a string can still be used here. It will be used for IPv4 and IPv6 configuration.

  • Default: 'USE_DEFAULTS'

orphan_mode_stratum

Orphan stratum configuration

  • Default: none

fudge_stratum

Stratum value

  • Default: 10

enable_stats

If statistics should be enabled.

  • Default: false

enable_tinker

If tinker should be enabled (boolean).

  • Default: true

statdir

Directory for storing ntpstats

  • Default: '/var/log/ntpstats/'

logfile

Log file name

  • Default: none

ignore_local_clock

Boolean to ignore the local clock. By setting this to true it ensures local clock is not referenced, useful if local clock drifts.

  • Default: false

disable_monitor

Adds 'disable monitor' line - disables NTP Monlist command, useful to prevent NTP reflection attack https://isc.sans.edu/forums/diary/NTP+reflection+attack/17300

  • Default: false