diff options
Diffstat (limited to 'roles/core/ntp/templates')
-rw-r--r-- | roles/core/ntp/templates/chrony.conf.j2 | 9 | ||||
-rw-r--r-- | roles/core/ntp/templates/openntpd.conf.j2 | 9 |
2 files changed, 18 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 %} 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 %} |