Added initial version of ntpd module

This commit is contained in:
Ossi Salmi 2010-12-27 18:38:48 +02:00 committed by Timo Mkinen
parent a7c9df14b8
commit e75b11402c
3 changed files with 118 additions and 0 deletions

View file

@ -0,0 +1,20 @@
# By default, exchange time with everybody, but don't allow configuration.
restrict -4 default kod notrap nomodify nopeer noquery
restrict -6 default kod notrap nomodify nopeer noquery
# Local users may interrogate the ntp server more closely.
restrict 127.0.0.1
restrict ::1
# Drift file.
driftfile /var/lib/ntp/ntp.drift
# Remote servers.
<% ntp_server.each do |server| -%>
server <%= server %>
<% end -%>
# Undisciplined Local Clock. This is a fake driver intended for backup
# and when no outside source of synchronized time is available.
server 127.127.1.0
fudge 127.127.1.0 stratum 10

View file

@ -0,0 +1,18 @@
# sample ntpd configuration file, see ntpd.conf(5)
# Addresses to listen on (ntpd does not listen by default)
listen on *
# sync to a single server
#server ntp.example.org
# use a random selection of NTP Pool Time Servers
<% ntp_server.each do |server| -%>
servers <%= server %>
<% end -%>
# use a specific local timedelta sensor (radio clock, etc)
#sensor nmea0
# use all detected timedelta sensors
#sensor *