Forge Home

openntpd

Puppet openntpd module

6,130 downloads

5,818 latest version

4.6 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.0.3 (latest)
  • 0.0.2
  • 0.0.1
released Sep 4th 2016
This version is compatible with:

Start using this module

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

Add this module to your Puppetfile:

mod 'link0-openntpd', '0.0.3'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add link0-openntpd
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install link0-openntpd --version 0.0.3

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
Tags: ntp, openntpd

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