openntpd

Puppet openntpd module

Link0

link0

4,962 downloads

4,794 latest version

4.6 quality score

Version information

  • 0.0.3 (latest)
  • 0.0.2
  • 0.0.1
released Sep 4th 2016
This version is compatible with:
  • Debian

Start using this module

Tags: openntpd, ntp

Documentation

link0/openntpd — version 0.0.3 Sep 4th 2016

link0/puppet-openntpd

Overview

The link0/openntpd module installs, configures and manages the OpenNTPD service.

Usage

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' ],
}

Hieradata

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'

Customization

package_manage

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

package_ensure

If the package is managed, how to ensure the package, Type: installed, absent or latest. Defaults to installed

package_name

If the package is available under a different name, you can specify it here. Type: string Defaults to openntpd

service_manage

Whether you want puppet to manage the service. Type: boolean, defaults to true

service_ensure

If the service is managed by puppet, what should be ensured. Type: running or stopped. Defaults to running

service_name

If the service is managed by puppet, what the name of the service should be. Type: string Defaults to 'openntpd'.

config_manage

Whether this module should manage the configuration files. Type: bool. Defaults to true

config_file

If the configuration is managed by puppet, which location the configuration file should be at. Type: absolute path

config_template

The template file for the configuration file. Can be overridden for custom behaviour. Type: string Defaults to openntpd/openntpd.conf.erb.

servers

An array of servers to connect to. Type: array Defaults to a generic pool list.

listen

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']