Forge Home

ntpd

OpenNTP module for OpenBSD

10,407 downloads

10,407 latest version

3.3 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.

Version information

  • 0.1.0 (latest)
released Dec 21st 2012

Start using this module

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

Add this module to your Puppetfile:

mod 'oppegaard-ntpd', '0.1.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add oppegaard-ntpd
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install oppegaard-ntpd --version 0.1.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

oppegaard/ntpd — version 0.1.0 Dec 21st 2012

ntpd

Manages OpenNTPD - service and configuration.

Configuration

Class ntpd takes one argument, settings, which is an array whose elements are the literal lines that will go into ntpd.conf(5). A minimal configuration which uses ntp.org's European pool is as follows:

class { 'ntpd':
  settings => [
    "servers europe.pool.ntp.org",
  ],
}

Examples

Setting up a server which requires ntpd to be started with the -s parameter.

class ntpd_server inherits ntpd::service::openbsd {
  class { 'ntpd':
    settings => [
      "listen on $::ipaddress",
      "servers europe.pool.ntp.org",
    ],
  }
  
  Rcconf['ntpd_flags'] {
    value => '"-s"',
  }
}

node 'ntp.my.domain' {
  include ntpd_server
}

See ntpd.conf(5) for how to configure OpenNTPD.