Version information
This version is compatible with:
Start using this module
Add this module to your Puppetfile:
mod 'link0-openntpd', '0.0.3'
Learn more about managing modules with a PuppetfileDocumentation
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']
Dependencies
- puppetlabs/stdlib (>= 3.2.0 <5.0.0)
MIT License Copyright (c) 2016 Link0 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.