Forge Home

ntp

UNKNOWN

205,946 downloads

14,421 latest version

4.1 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

  • 2.5.1 (latest)
  • 2.5.0
  • 2.4.0
  • 2.3.2
  • 2.3.1
  • 2.3.0
  • 2.2.0
  • 2.1.0
  • 2.0.4
  • 2.0.3
  • 2.0.2
  • 2.0.1
  • 2.0.0
  • 1.0.0
released Jan 12th 2018
This version is compatible with:
  • Puppet Enterprise 2017.2.x, 2017.1.x, 2016.5.x, 2016.4.x
  • Puppet >=4.0.0 <5.0.0
  • RedHat, CentOS, OracleLinux, Scientific, SLC, OVS, OEL, Fedora, Suse, Gentoo, Archlinux, Debian, Ubuntu

Start using this module

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

Add this module to your Puppetfile:

mod 'saz-ntp', '2.5.1'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

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

Manually install this module globally with Puppet module tool:

puppet module install saz-ntp --version 2.5.1

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

saz/ntp — version 2.5.1 Jan 12th 2018

puppet-ntp

Manage NTP client and server via Puppet

Supported Puppet versions

  • Puppet >= 4
  • Last version supporting Puppet 3: v2.5.0

Usage

Client

Using ntp pool mirrors

    class { 'ntp': }

Using custom ntp mirrors

    class { 'ntp':
        server_list => [ 'yourLocalServer1', 'yourLocalServer2', ]
    }

Server

Using ntp pool mirrors

    class { 'ntp':
        server_enabled => true,
    }

Using custom ntp mirrors

    class { 'ntp':
        server_list = [ 'yourLocalServer1', 'yourLocalServer2', ],
        server_enabled => true,
}

If you want some clients with unlimited access, you can set $query_networks in the follwing way:

    class { 'ntp':
        server_list = [ 'yourLocalServer1', 'yourLocalServer2', ],
        server_enabled = true,
        query_networks = [ '192.168.0.0/255.255.255.0', '172.16.0.0/255.255.0.0', ],
    }

Adding options to all servers in server_list

    class { 'ntp':
        server_list = ['a.example.com', 'b.example.com'],
        server_options = 'iburst',
    }

Adding options to one specific server

    class { 'ntp':
        server_list = [
            'a.example.com iburst',
            'b.example.com',
        ],
    }

Other class parameters

  • server_options: string, default: ''
  • pool_list: string, default: []
  • pool_options: string, default: ''
  • interface_ignore: array, default: []
  • interface_listen: array, default: []
  • enable_statistics: true or false, default: false
  • statsdir: string, default: undef
  • ensure: present or absent, default: present
  • autoupgrade: true or false, default: false
  • package: string, default: OS specific. Set package name, if platform is not supported.
  • config_file: string, default: OS specific. Set config_file, if platform is not supported.
  • config_file_replace: true or false, default: true
  • driftfile: string, default: OS specific. Set driftfile, if platform is not supported.
  • service_ensure: running or stopped, default: running
  • service_name: string, default: OS specific. Set service_name, if platform is not supported.
  • service_enable: true or false, default: true
  • service_hasstatus: true or false, default: true
  • service_hasrestart: true or false, default: true