Update for EL9
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
parent
20f9aede36
commit
3611513f5a
1 changed files with 18 additions and 0 deletions
|
|
@ -13,6 +13,11 @@ pool {{ ntppool }} iburst
|
|||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{% if ansible_os_family == "RedHat" and ansible_distribution_major_version >= "9" %}
|
||||
# Use NTP servers from DHCP.
|
||||
sourcedir /run/chrony-dhcp
|
||||
|
||||
{% endif %}
|
||||
{% if chrony_clients is defined %}
|
||||
# Ignore stratum in source selection.
|
||||
stratumweight 0
|
||||
|
|
@ -53,9 +58,22 @@ cmdallow ::1
|
|||
# Serve time even if not synchronized to a time source.
|
||||
#local stratum 10
|
||||
|
||||
{% if ansible_os_family == "RedHat" and ansible_distribution_major_version >= "9" %}
|
||||
# Require authentication (nts or key option) for all NTP sources.
|
||||
#authselectmode require
|
||||
|
||||
{% endif %}
|
||||
# Specify file containing keys for NTP authentication.
|
||||
keyfile /etc/chrony.keys
|
||||
|
||||
{% if ansible_os_family == "RedHat" and ansible_distribution_major_version >= "9" %}
|
||||
# Save NTS keys and cookies.
|
||||
ntsdumpdir /var/lib/chrony
|
||||
|
||||
# Insert/delete leap seconds by slewing instead of stepping.
|
||||
#leapsecmode slew
|
||||
|
||||
{% endif %}
|
||||
# Get TAI-UTC offset and leap seconds from the system tz database.
|
||||
leapsectz right/UTC
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue