aboutsummaryrefslogtreecommitdiffstats
path: root/roles/chrony/templates/etc/chrony.conf.j2
diff options
context:
space:
mode:
Diffstat (limited to 'roles/chrony/templates/etc/chrony.conf.j2')
-rw-r--r--roles/chrony/templates/etc/chrony.conf.j222
1 files changed, 22 insertions, 0 deletions
diff --git a/roles/chrony/templates/etc/chrony.conf.j2 b/roles/chrony/templates/etc/chrony.conf.j2
new file mode 100644
index 0000000..ecdcde6
--- /dev/null
+++ b/roles/chrony/templates/etc/chrony.conf.j2
@@ -0,0 +1,22 @@
+{% for server in chrony_ntp_servers %}
+server {{ server }} iburst
+{% endfor %}
+
+# Record the rate at which the system clock gains/losses time.
+driftfile /var/lib/chrony/drift
+
+# Allow the system clock to be stepped in the first three updates
+# if its offset is larger than 1 second.
+makestep 1.0 3
+
+# Enable kernel synchronization of the real-time clock (RTC).
+rtcsync
+
+# Specify file containing keys for NTP authentication.
+keyfile /etc/chrony.keys
+
+# Get TAI-UTC offset and leap seconds from the system tz database.
+leapsectz right/UTC
+
+# Specify directory for log files.
+logdir /var/log/chrony