summaryrefslogtreecommitdiff
path: root/data/templates/chrony
diff options
context:
space:
mode:
authorIndrajit Raychaudhuri <irc@indrajit.com>2023-03-25 02:42:29 -0500
committerIndrajit Raychaudhuri <irc@indrajit.com>2023-03-25 03:05:15 -0500
commit85ed5feda444604622f08d73ea52e744733315d0 (patch)
tree142bdba1f96eb8a8b254eba3ac9b9d677e9fbe52 /data/templates/chrony
parent58b29610221a8f80bea1cfacbd2112f3690fe734 (diff)
downloadvyos-1x-85ed5feda444604622f08d73ea52e744733315d0.tar.gz
vyos-1x-85ed5feda444604622f08d73ea52e744733315d0.zip
ntp: T5112: Enable support for NTS (Network Time Security) in chrony
This is basic configuration to enable NTS support in chrony.
Diffstat (limited to 'data/templates/chrony')
-rw-r--r--data/templates/chrony/chrony.conf.j23
1 files changed, 2 insertions, 1 deletions
diff --git a/data/templates/chrony/chrony.conf.j2 b/data/templates/chrony/chrony.conf.j2
index 711bbbec7..7a36fe69d 100644
--- a/data/templates/chrony/chrony.conf.j2
+++ b/data/templates/chrony/chrony.conf.j2
@@ -17,6 +17,7 @@ clientloglimit 1048576
driftfile /run/chrony/drift
dumpdir /run/chrony
+ntsdumpdir /run/chrony
pidfile {{ config_file | replace('.conf', '.pid') }}
# Determine when will the next leap second occur and what is the current offset
@@ -31,7 +32,7 @@ user {{ user }}
{% if config.pool is vyos_defined %}
{% set association = 'pool' %}
{% endif %}
-{{ association }} {{ server | replace('_', '-') }} iburst {{ 'noselect' if config.noselect is vyos_defined }} {{ 'prefer' if config.prefer is vyos_defined }}
+{{ association }} {{ server | replace('_', '-') }} iburst {{ 'nts' if config.nts is vyos_defined }} {{ 'noselect' if config.noselect is vyos_defined }} {{ 'prefer' if config.prefer is vyos_defined }}
{% endfor %}
{% endif %}