Forge Home

ntp

Lean RedHat NTP module, with the most common settings.

Disk Stats

diskstats

9,991 downloads

9,229 latest version

3.0 quality score

Version information

  • 0.2.2 (latest)
  • 0.1.18
  • 0.1.15
  • 0.1.10
  • 0.1.8
  • 0.1.1
  • 0.1.0
released Sep 3rd 2014
This version is compatible with:
  • Puppet 3.x
  • RedHat
    ,
    CentOS
    ,
    OracleLinux

Start using this module

Documentation

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.