Migrate from old repository
This commit is contained in:
commit
4a304d486a
16 changed files with 516 additions and 0 deletions
34
templates/chrony.conf.j2
Normal file
34
templates/chrony.conf.j2
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
# {{ ansible_managed }}
|
||||
|
||||
# List of NTP servers to use.
|
||||
{% if ansible_hostname == 'hesat' %}
|
||||
pool ntp.tuxfamily.net iburst
|
||||
pool fr.pool.ntp.org iburst
|
||||
server 2a01:e0a:2b:2250::b
|
||||
{% else %}
|
||||
{% for server in ntp_pool %}
|
||||
pool {{ server }} iburst
|
||||
{% endfor %}
|
||||
|
||||
initstepslew 10 {{ ntp_pool[0] }}
|
||||
{% endif %}
|
||||
|
||||
# Record the rate at which the system clock gains/losses time.
|
||||
driftfile /var/lib/chrony/chrony.drift
|
||||
|
||||
# In first three updates step the system clock instead of slew
|
||||
# if the adjustment is larger than 1 second.
|
||||
makestep 1.0 3
|
||||
|
||||
# Enable kernel synchronization of the real-time clock (RTC).
|
||||
rtcsync
|
||||
|
||||
cmdport 0
|
||||
|
||||
user ntp
|
||||
|
||||
{% if ntp_served_for is defined %}
|
||||
{% for network in ntp_served_for %}
|
||||
allow {{ network }}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue