Version information
released Sep 3rd 2014
This version is compatible with:
- Puppet 3.x
- , ,
Start using this module
Add this module to your Puppetfile:
mod 'diskstats-ntp', '0.2.2'
Learn more about managing modules with a PuppetfileDocumentation
diskstats/ntp — version 0.2.2 Sep 3rd 2014
Content
About
Lean RedHat NTP module, with the most common settings.
Examples
1) Use all the default settings.
include '::ntp'
2) Set the preferred servers.
class { '::ntp':
servers => ['time1.google.com', 'time2.google.com'],
}
3) Set the preferred servers with the iburst option.
class { '::ntp':
servers => ['time1.google.com iburst', 'time2.google.com iburst'],
}
4) Use the OS supplied ntp.conf file, servers may also be specified.
class { '::ntp':
conffile => "ntp/${::osfamily}/ntp.conf-${::operatingsystemmajrelease}.erb",
}
5) Use a static file for ntp.conf
class { '::ntp':
conffile => ["puppet:///modules/${module_name}/ntp.conf-${::operatingsystemmajrelease}"],
}
Parameters
server
- type: array
- default: ['0.pool.ntp.org', '1.pool.ntp.org', '2.pool.ntp.org', '3.pool.ntp.org']
driftfile
- type: string
- default: '/var/lib/ntp/drift'
restrict
- type: array
- default: ['default nomodify notrap nopeer noquery', '127.0.0.1', '::1']
includefile
- type: array
- default: ['/etc/ntp/crypto/pw']
keys
- type: string
- default: '/etc/ntp/keys'
- description:
disable
- type: array
- default: ['monitor']
conffile
- type: string|array
- default: "${module_name}/ntp.conf.erb"
ensure
- type: string
- values: 'running'|'stopped'
- default: 'enabled'
- description: Ensure the service is in the desired state.
onboot
- type: string
- values: 'enabled'|'disabled'
- default: 'running'
- description: Ensure the service is in the desired state on boot.
Wed Sep 03 2014 diskstats@gmail.com 0.1.17
- added parameters $ensure $onboot
- added default OS provided ntp.conf file tempaltes for el{5,6,7}
- spell checks, documentation additions