From 7b05bb73226030dced06e069f9b85c246a84bbb1 Mon Sep 17 00:00:00 2001 From: Jeffrey Zhang Date: Sat, 6 May 2017 10:05:35 +0800 Subject: [PATCH] Add local directive for chrony The local keyword is used to allow chronyd to appear synchronised to real time (from the viewpoint of clients polling it), even if it has no current synchronisation source. Change-Id: I27d945abb87a37d2fdf972a58c51e2f0994e3de8 Closes-Bug: #1688682 --- ansible/roles/chrony/templates/chrony.conf.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/ansible/roles/chrony/templates/chrony.conf.j2 b/ansible/roles/chrony/templates/chrony.conf.j2 index 53f0e848c5..62cb01d844 100644 --- a/ansible/roles/chrony/templates/chrony.conf.j2 +++ b/ansible/roles/chrony/templates/chrony.conf.j2 @@ -24,6 +24,7 @@ dumpdir /var/lib/chrony {% if inventory_hostname in groups['chrony-server'] %} allow all +local stratum 10 {% else %} port 0 deny all