Repos with recipes to deploy some infrastructure services
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

58 line
1.9 KiB

  1. #################################################################
  2. # File: chrony.conf
  3. # Generated by: Ansible
  4. #################################################################
  5. # Use public servers from the pool.ntp.org project.
  6. # Please consider joining the pool (http://www.pool.ntp.org/join.html).
  7. {% for server in pools %}
  8. server {{ server }} iburst
  9. {% endfor %}
  10. # -- CLIENT NETWORK -------
  11. # Permit systems on this network to synchronize with this
  12. # time service. Do not permit those systems to modify the
  13. # configuration of this service. Also, do not use those
  14. # systems as peers for synchronization.
  15. {% for subnet in allowed_subnets %}
  16. allow {{ (subnet.net + '/' + subnet.mask) | ipaddr('net') }}
  17. {% endfor %}
  18. #
  19. # Drift file. Put this in a directory which the daemon can write to.
  20. # No symbolic links allowed, either, since the daemon updates the file
  21. # by creating a temporary in the same directory and then rename()ing
  22. # it to the file.
  23. # Record the rate at which the system clock gains/losses time.# Record the rate at which the system clock gains/losses time.
  24. #
  25. driftfile {{ driftfile }}
  26. # Allow the system clock to be stepped in the first three updates
  27. # if its offset is larger than 1 second.
  28. makestep 1.0 3
  29. # Enable kernel synchronization of the real-time clock (RTC).
  30. rtcsync
  31. # Enable hardware timestamping on all interfaces that support it.
  32. #hwtimestamp *
  33. # Increase the minimum number of selectable sources required to adjust
  34. # the system clock.
  35. #minsources 2
  36. # Serve time even if not synchronized to a time source.
  37. #local stratum 10
  38. #
  39. # Key file containing the keys and key identifiers used when operating
  40. # with symmetric key cryptography.
  41. #
  42. {% if keyfile is defined %}
  43. keyfile {{ keyfile }}
  44. {% endif %}
  45. # Specify directory for log files.
  46. logdir {{ logfile | dirname}}
  47. # Select which information is logged.
  48. #log measurements statistics tracking