Skip to content

Commit

Permalink
ntp: T5112: Enable support for NTS (Network Time Security) in chrony
Browse files Browse the repository at this point in the history
This is basic configuration to enable NTS support in chrony.
  • Loading branch information
indrajitr committed Mar 25, 2023
1 parent 58b2961 commit 0ed8495
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion data/templates/chrony/chrony.conf.j2
Expand Up @@ -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
Expand All @@ -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('_', '-') }} {{ 'nts' if config.nts is vyos_defined }} iburst {{ 'noselect' if config.noselect is vyos_defined }} {{ 'prefer' if config.prefer is vyos_defined }}
{% endfor %}
{% endif %}

Expand Down
6 changes: 6 additions & 0 deletions interface-definitions/ntp.xml.in
Expand Up @@ -37,6 +37,12 @@
<valueless/>
</properties>
</leafNode>
<leafNode name="nts">
<properties>
<help>Enable Network Time Security (NTS) for the server</help>
<valueless/>
</properties>
</leafNode>
<leafNode name="pool">
<properties>
<help>Associate with a number of remote servers</help>
Expand Down

0 comments on commit 0ed8495

Please sign in to comment.