crans_bcfg2/Python/etc/openntpd/ntpd.conf
2015-05-14 07:19:56 +02:00

39 lines
1.1 KiB
Text

include("ip")
if has("ntp-server"):
@# Addresses to listen on (ntpd does not listen by default)
out("listen on %s" % (admip(),))
out("listen on %s" % (pubip(),))
@listen on 127.0.0.1
@#listen on ::1
@
@# sync to a single server
@#server ntp.adm.crans.org
@
@# use a random selection of 8 public stratum 2 servers
@# see http://twiki.ntp.org/bin/view/Servers/NTPPoolServers
@servers pool.ntp.org
elif has("secondary-ntp-server"):
@# Addresses to listen on (ntpd does not listen by default)
@listen on *
@#listen on 127.0.0.1
@#listen on ::1
@
@# sync to a single server
@server ntp.adm.crans.org
@
@# use a random selection of 8 public stratum 2 servers
@# see http://twiki.ntp.org/bin/view/Servers/NTPPoolServers
@#servers pool.ntp.org
else:
@# Addresses to listen on (ntpd does not listen by default)
@#listen on *
@#listen on 127.0.0.1
@#listen on ::1
@
@# sync to a single server
@server ntp.adm.crans.org
@
@# use a random selection of 8 public stratum 2 servers
@# see http://twiki.ntp.org/bin/view/Servers/NTPPoolServers
@#servers pool.ntp.org