Skip to content

thias/puppet-ntp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

puppet-ntp

Overview

Install, enable and configure the Network Time Protocol daemon.

  • ntp : Class to install and enable ntpd.

The module also supports changing the logging to go directly to a file instead of syslog, and creates a logrotate entry for that file (see example below).

Examples

Basic enabling of ntpd with the default servers :

include '::ntp'

Advanced example, using only hieradata :

classes:
  - '::ntp'
ntp::logfile: '/var/log/ntpd.log'
ntp::server:
  - '0.ntp.example.com'
  - '1.ntp.example.com'
  - '2.ntp.example.com'
ntp::restrict:
  - 'default kod nomodify notrap nopeer noquery'