summaryrefslogtreecommitdiffstats
path: root/roles/chrony/templates
diff options
context:
space:
mode:
authorMatt Woodson <mwoodson@gmail.com>2016-01-18 15:49:15 -0500
committerMatt Woodson <mwoodson@gmail.com>2016-01-18 15:49:15 -0500
commiteb96ea3556824ec6f12443b2ded6d71c18c11caa (patch)
treefd3759e9c2ed4d26dcf33491dc2750cd6f490cbc /roles/chrony/templates
parent3bed4d0c4bda1b6332ec547502663d09e98b89d1 (diff)
parentd6a42ecaf39ba679a15ceb4e85832c45a8997640 (diff)
downloadopenshift-eb96ea3556824ec6f12443b2ded6d71c18c11caa.tar.gz
openshift-eb96ea3556824ec6f12443b2ded6d71c18c11caa.tar.bz2
openshift-eb96ea3556824ec6f12443b2ded6d71c18c11caa.tar.xz
openshift-eb96ea3556824ec6f12443b2ded6d71c18c11caa.zip
Merge pull request #1220 from openshift/master
Merge master into prod
Diffstat (limited to 'roles/chrony/templates')
-rw-r--r--roles/chrony/templates/chrony.conf.j245
1 files changed, 45 insertions, 0 deletions
diff --git a/roles/chrony/templates/chrony.conf.j2 b/roles/chrony/templates/chrony.conf.j2
new file mode 100644
index 000000000..de43b6364
--- /dev/null
+++ b/roles/chrony/templates/chrony.conf.j2
@@ -0,0 +1,45 @@
+# Use public servers from the pool.ntp.org project.
+# Please consider joining the pool (http://www.pool.ntp.org/join.html).
+{% for server in chrony_ntp_servers %}
+server {{ server }} iburst
+{% endfor %}
+
+# Ignore stratum in source selection.
+stratumweight 0
+
+# Record the rate at which the system clock gains/losses time.
+driftfile /var/lib/chrony/drift
+
+# Enable kernel RTC synchronization.
+rtcsync
+
+# In first three updates step the system clock instead of slew
+# if the adjustment is larger than 10 seconds.
+makestep 10 3
+
+# Allow NTP client access from local network.
+#allow 192.168/16
+
+# Listen for commands only on localhost.
+bindcmdaddress 127.0.0.1
+bindcmdaddress ::1
+
+# Serve time even if not synchronized to any NTP server.
+#local stratum 10
+
+keyfile /etc/chrony.keys
+
+# Specify the key used as password for chronyc.
+commandkey 1
+
+# Generate command key if missing.
+generatecommandkey
+
+# Disable logging of client accesses.
+noclientlog
+
+# Send a message to syslog if a clock adjustment is larger than 0.5 seconds.
+logchange 0.5
+
+logdir /var/log/chrony
+#log measurements statistics tracking