summaryrefslogtreecommitdiff
path: root/roles/core/ntp/templates/openntpd.conf.j2
diff options
context:
space:
mode:
Diffstat (limited to 'roles/core/ntp/templates/openntpd.conf.j2')
-rw-r--r--roles/core/ntp/templates/openntpd.conf.j29
1 files changed, 9 insertions, 0 deletions
diff --git a/roles/core/ntp/templates/openntpd.conf.j2 b/roles/core/ntp/templates/openntpd.conf.j2
index 3e2204f6..fd43f816 100644
--- a/roles/core/ntp/templates/openntpd.conf.j2
+++ b/roles/core/ntp/templates/openntpd.conf.j2
@@ -1,3 +1,12 @@
+{% if ntp_refclocks is defined %}
+### Sensors
+
+{% for refclock in ntp_refclocks %}
+sensor {{ refclock.device }}{% if 'options' in refclock %} {{ refclock.options }}{% endif %}{{ '' }}
+{% endfor %}
+
+
+{% endif %}
{% if ntp_client is defined %}
### Client
{% if 'servers' in ntp_client %}