Forge Home

ntpd

OpenNTP module for OpenBSD

Martin Oppegaard

oppegaard

9,632 downloads

9,632 latest version

3.3 quality score

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.