2021-12-01 19:13:34 +01:00
|
|
|
{% for server in ntp_servers %}
|
|
|
|
server {{ server }} iburst
|
|
|
|
{% endfor %}
|
|
|
|
keyfile {{ ntp_chrony_keyfile }}
|
|
|
|
driftfile /var/lib/chrony/drift
|
2024-09-23 23:00:09 +02:00
|
|
|
{% if ansible_virtualization_role == "guest" and ansible_virtualization_type == "kvm" and ntp_ptp_kvm_dev.stat.exists %}
|
|
|
|
refclock PHC /dev/ptp0 poll 2 trust
|
|
|
|
{% endif %}
|
2022-07-29 15:00:16 +02:00
|
|
|
{% if ansible_virtualization_role == "guest" %}
|
2024-09-23 23:00:09 +02:00
|
|
|
# Virtualization guest, so allow unlimited steps if the clock is more than 15sec off
|
|
|
|
makestep 15 -1
|
2022-07-29 15:00:16 +02:00
|
|
|
{% else %}
|
2021-12-01 19:13:34 +01:00
|
|
|
makestep 1.0 3
|
2022-07-29 15:00:16 +02:00
|
|
|
{% endif %}
|
2021-12-01 19:13:34 +01:00
|
|
|
rtcsync
|
|
|
|
{% if samba_role is defined and samba_role in ['dc','rodc'] %}
|
|
|
|
# Running Samba DC
|
|
|
|
ntpsigndsocket /var/lib/samba/ntp_signd
|
|
|
|
allow all
|
|
|
|
{% endif %}
|