Version information
released Dec 21st 2012
Start using this module
Add this module to your Puppetfile:
mod 'oppegaard-ntpd', '0.1.0'
Learn more about managing modules with a PuppetfileDocumentation
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.
Dependencies
- puppetlabs/stdlib (>= 3.2.0)
- oppegaard/openbsd (>= 0.1.0)
Copyright (c) 2012 Martin Oppegaard <martin.oppegaard at gmail dot com> Permission to use, copy, modify, and distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.