blob: 89844fba05b988e8cb911d90dfdc219a5bc49be6 [file] [log] [blame]
Zack Williamsf809afe2021-02-11 17:46:12 -07001# SPDX-FileCopyrightText: © 2021 Open Networking Foundation <support@opennetworking.org>
2# SPDX-License-Identifier: Apache-2.0
3
4# Welcome to the chrony configuration file. See chrony.conf(5) for more
5# information about usuable directives.
6
7# this is derived from the Ubuntu 18.04 default file, with modifications
8
9# NTP pools to obtain time from
10{% for pool in ntp_pools %}
11pool {{ pool['name'] }} iburst maxsources {{ pool['count'] }}
12{% endfor %}
13
14# This directive specify the location of the file containing ID/key pairs for
15# NTP authentication.
16keyfile {{ chrony_conf_dir }}/chrony.keys
17
18# This directive specify the file into which chronyd will store the rate
19# information.
20driftfile /var/lib/chrony/chrony.drift
21
22# Uncomment the following line to turn logging on.
23#log tracking measurements statistics
24
25# Log files location.
26logdir /var/log/chrony
27
28# Stop bad estimates upsetting machine clock.
29maxupdateskew 100.0
30
31# This directive enables kernel synchronisation (every 11 minutes) of the
32# real-time clock. Note that it can’t be used along with the 'rtcfile' directive.
33rtcsync
34
35# Step the system clock instead of slewing it if the adjustment is larger than
36# one second, but only in the first three clock updates.
37makestep 1 3
38
39{% if ntp_client_allow %}
40# Function as an NTP server and allow access from these networks
41{% for cidr in ntp_client_allow %}
42allow {{ cidr }}
43{% endfor %}
44{% endif %}