chrony.j2 436 B

123456789101112131415161718
  1. config dhcp_ntp_server 'dhcp_ntp_server'
  2. option disabled '0'
  3. option iburst 'yes'
  4. config makestep 'makestep'
  5. option threshold '1'
  6. option limit '3'
  7. {% for server in chrony.servers %}
  8. config pool
  9. option hostname '{{ server.address }}'
  10. option iburst '{% if server.iburst is defined and server.iburst %}yes{% else %}no{% endif %}'
  11. option nts '{% if server.nts is defined and server.nts %}yes{% else %}no{% endif %}'
  12. {% endfor %}