7b05bb7322
The local keyword is used to allow chronyd to appear synchronised to real time (from the viewpoint of clients polling it), even if it has no current synchronisation source. Change-Id: I27d945abb87a37d2fdf972a58c51e2f0994e3de8 Closes-Bug: #1688682
40 lines
717 B
Django/Jinja
40 lines
717 B
Django/Jinja
{% for host in groups['chrony-server'] %}
|
|
{% if inventory_hostname != host %}
|
|
server {{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }} iburst
|
|
{% endif %}
|
|
{% endfor %}
|
|
{% for ntp_server in external_ntp_servers %}
|
|
server {{ ntp_server }} iburst
|
|
{% endfor %}
|
|
|
|
keyfile /etc/chrony/chrony.keys
|
|
|
|
commandkey 1
|
|
|
|
driftfile /var/lib/chrony/chrony.drift
|
|
|
|
log tracking measurements statistics
|
|
logdir /var/log/kolla/chrony
|
|
|
|
maxupdateskew 100.0
|
|
|
|
dumponexit
|
|
|
|
dumpdir /var/lib/chrony
|
|
|
|
{% if inventory_hostname in groups['chrony-server'] %}
|
|
allow all
|
|
local stratum 10
|
|
{% else %}
|
|
port 0
|
|
deny all
|
|
{% endif %}
|
|
|
|
bindaddress {{ api_interface_address }}
|
|
|
|
logchange 0.5
|
|
|
|
hwclockfile /etc/adjtime
|
|
|
|
rtcsync
|