source: MondoRescue/branches/3.3/ansible/roles/ntp/templates/ntp.conf.j2@ 3747

Last change on this file since 3747 was 3747, checked in by Bruno Cornec, 4 years ago

Update to mga7

File size: 1.9 KB
Line 
1# {{ ansible_managed }}
2#
3# Undisciplined Local Clock. This is a fake driver intended for backup
4# and when no outside source of synchronized time is available. The
5# default stratum is usually 3, but in this case we elect to use stratum
6# 0. Since the server line does not have the prefer keyword, this driver
7# is never used for synchronization, unless no other other
8# synchronization source is available. In case the local host is
9# controlled by some external source, such as an external oscillator or
10# another protocol, the prefer keyword would cause the local host to
11# disregard all other synchronization sources, unless the kernel
12# modifications are in use and declare an unsynchronized condition.
13#
14
15server 127.127.1.0 # local clock
16fudge 127.127.1.0 stratum 10
17
18# server clock.via.net
19server {{ ntp_server }}
20
21#tos orphan 6
22
23#
24# Drift file. Put this in a directory which the daemon can write to.
25# No symbolic links allowed, either, since the daemon updates the file
26# by creating a temporary in the same directory and then rename()'ing
27# it to the file.
28#
29driftfile /var/lib/ntp/drift
30multicastclient 224.0.1.1 # listen on default 224.0.1.1
31broadcastdelay 0.008
32
33#
34# Keys file. If you want to diddle your server at run time, make a
35# keys file (mode 600 for sure) and define the key number to be
36# used for making requests.
37# PLEASE DO NOT USE THE DEFAULT VALUES HERE. Pick your own, or remote
38# systems might be able to reset your clock at will.
39#
40#keys /etc/ntp/keys
41#trustedkey 65535
42#requestkey 65535
43#controlkey 65535
44
45# Permit time synchronization with our time source, but do not
46# permit the source to query or modify the service on this system.
47restrict default kod nomodify notrap nopeer noepeer noquery
48
49# Permit all access over the loopback interface. This could
50# be tightened as well, but to do so would effect some of
51# the administrative functions.
52restrict 127.0.0.1
53restrict ::1
Note: See TracBrowser for help on using the repository browser.