Forge Home


NTP Module


10,461 latest version

3.5 quality score

Version information

  • 0.2.0 (latest)
released Feb 16th 2013

Start using this module

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

Add this module to your Puppetfile:

mod 'mthibaut-ntp', '0.2.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

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

Manually install this module globally with Puppet module tool:

puppet module install mthibaut-ntp --version 0.2.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.

Tags: ntp, hiera


mthibaut/ntp — version 0.2.0 Feb 16th 2013


Build Status


The NTP module installs, configures, and manages the network time service. It allows the use of hiera to store configuration items.

Module Description

The NTP module allows Puppet to install, configure, and then manage your Network Time Protocol service. The module allows you to setup and manage time settings across many servers from one place.


What NTP affects:

  • package/service/configuration files for NTP
  • server settings

Beginning with NTP

To setup NTP on a server

class { "ntp":
  servers    => [ '' ],
  autoupdate => false,


When making changes to your configuration of NTP, you may need to stop and restart the ntp service. To keep the ntp service stopped, pass ensure => stopped to the class:

class { ntp:
  ensure     => running,
  servers    => [ ' iburst',
                  ' iburst' , ]
  autoupdate => true,

The ntp class has several parameters to assist configuration of the ntp service.

Parameters within ntp


NTP will use your operating system's default server if this parameter is left unspecified. This parameter accepts an array of servers,

class { 'ntp':
  servers => [ ' iburst',
               ' iburst',
               ' iburst',
               ' iburst', ]


This parameter specifies whether to restrict ntp daemons from allowing others to use as a server.


This parameter is used to determine whether the ntp package will be updated automatically or not.


This parameter allows you to choose whether to automatically start ntp daemon on boot.


This module has been built and tested using Puppet 2.6.x, 2.7, and 3.x.

The module has been tested on:

  • Enterprise Linux 5
  • Debian 6.0
  • CentOS 5.4.
  • Ubuntu 12.04

Testing on other platforms has been light and cannot be guaranteed.


Puppet Labs modules on the Puppet Forge are open projects, and community contributions are essential for keeping them great. We can’t access the huge number of platforms and myriad of hardware, software, and deployment configurations that Puppet is intended to serve.

We want to keep it as easy as possible to contribute changes so that our modules work in your environment. There are a few guidelines that we need contributors to follow so that we can have a chance of keeping on top of things.

You can read the complete module contribution guide on the Puppet Labs wiki.

Release Notes


0.2.0 is a backwards compatible feature and bug-fix release. Since 0.1.0, support for Amazon Linux was added, fixes for style were implemented, and support was added for tinker_panic. tinker_panic will default to on when the fact is_virtual is true.