Zack Williams | f809afe | 2021-02-11 17:46:12 -0700 | [diff] [blame^] | 1 | # 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 %} |
| 11 | pool {{ 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. |
| 16 | keyfile {{ chrony_conf_dir }}/chrony.keys |
| 17 | |
| 18 | # This directive specify the file into which chronyd will store the rate |
| 19 | # information. |
| 20 | driftfile /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. |
| 26 | logdir /var/log/chrony |
| 27 | |
| 28 | # Stop bad estimates upsetting machine clock. |
| 29 | maxupdateskew 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. |
| 33 | rtcsync |
| 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. |
| 37 | makestep 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 %} |
| 42 | allow {{ cidr }} |
| 43 | {% endfor %} |
| 44 | {% endif %} |