summaryrefslogtreecommitdiff
path: root/roles/core/ntp/templates/chrony.conf.j2
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2021-09-22 21:54:14 +0200
committerChristian Pointner <equinox@spreadspace.org>2021-09-22 21:54:14 +0200
commitdeb106e0405991deb9e110e9fe40e42283a991bc (patch)
tree8fe9ccca321e8adc216e8c2f4193832138766b62 /roles/core/ntp/templates/chrony.conf.j2
parentch-sensors1 add new 1-wire therm sensor and fix regexp (diff)
core/ntp: add support for ref-clocks
Diffstat (limited to 'roles/core/ntp/templates/chrony.conf.j2')
-rw-r--r--roles/core/ntp/templates/chrony.conf.j29
1 files changed, 9 insertions, 0 deletions
diff --git a/roles/core/ntp/templates/chrony.conf.j2 b/roles/core/ntp/templates/chrony.conf.j2
index 04571b74..00107914 100644
--- a/roles/core/ntp/templates/chrony.conf.j2
+++ b/roles/core/ntp/templates/chrony.conf.j2
@@ -13,6 +13,15 @@ makestep 1 3
hwtimestamp {{ interface.name }}{% if 'options' in interface %} {{ interface.options }}{% endif %}{{ '' }}
{% endfor %}
{% endif %}
+{% if ntp_refclocks is defined %}
+
+
+### Ref-Clocks
+
+{% for refclock in ntp_refclocks %}
+refclock {{ refclock.type }} {{ refclock.device }}{% if 'options' in refclock %} {{ refclock.options }}{% endif %}{{ '' }}
+{% endfor %}
+{% endif %}
{% if ntp_client is defined %}