The link0/openntpd module installs, configures and manages the OpenNTPD service.
Basic usage accepting all defaults (installation, configuration, managing the service, etcetera)
include '::openntp'
Although, if you would like to have more control over the service, you can pass parameters like this:
class { '::openntp':
servers => [ 'ntp1.corp.com', 'ntp2.corp.com' ],
}
This module is completely configurable using Hieradata. An example of this:
openntpd::listen: '127.0.0.1'
openntpd::servers:
- '0.europe.pool.ntp.org'
- '1.europe.pool.ntp.org'
Whether the package should be managed by puppet. Type: boolean
. Defaults to true
eg package_manage: false
will not install the package from your package manager
If the package is managed, how to ensure the package, Type: installed
, absent
or latest
. Defaults to installed
If the package is available under a different name, you can specify it here. Type: string
Defaults to openntpd
Whether you want puppet to manage the service. Type: boolean
, defaults to true
If the service is managed by puppet, what should be ensured. Type: running
or stopped
. Defaults to running
If the service is managed by puppet, what the name of the service should be. Type: string
Defaults to 'openntpd'.
Whether this module should manage the configuration files. Type: bool
. Defaults to true
If the configuration is managed by puppet, which location the configuration file should be at. Type: absolute path
The template file for the configuration file. Can be overridden for custom behaviour. Type: string
Defaults to openntpd/openntpd.conf.erb
.
An array of servers to connect to. Type: array
Defaults to a generic pool list.
A value to let the daemon listen on. Type: string
or array
. Defaults to []
.
Example: 127.0.0.1
. or ['127.0.0.1', '::1']