chore: adjust config for rh9
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2022-09-12 21:33:51 +02:00
parent 4352030833
commit 26b819f7d4
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
2 changed files with 23 additions and 38 deletions

View File

@ -1,21 +1,13 @@
--- ---
chrony_port: 123 chrony_pool: 2.pool.ntp.org iburst
chrony_acquisitionport: 1123 chrony_server: []
chrony_allow: [] chrony_allow: []
chrony_conf_file: /etc/chrony/chrony.conf chrony_ntsdumpdir: /var/lib/chrony
chrony_key_file: /etc/chrony/chrony.keys
chrony_drift_file: /var/lib/chrony/drift
# @var chrony_pool:default: $ "_unset_" chrony_logdir: /var/log/chrony
chrony_server: "169.254.169.123 prefer iburst" chrony_log:
- measurements
chrony_log: "tracking measurements statistics" - statistics
chrony_log_dir: /var/log/chrony - tracking
chrony_maxupdateskew: 100.0
chrony_dump_dir: /var/lib/chrony
chrony_initstepslew_enabled: False
chrony_initstepslew_threshold: 30
chrony_initstepslew_servers: "169.254.169.123"

View File

@ -1,33 +1,26 @@
# {{ ansible_managed }} # {{ ansible_managed }}
port {{ chrony_port }} {% if chrony_server | default([]) | length == 0 %}
acquisitionport {{ chrony_acquisitionport }}
{% if chrony_pool is defined %}
pool {{ chrony_pool }} pool {{ chrony_pool }}
{% endif %} {% endif %}
server {{ chrony_server }} {% for server in chrony_server %}
server {{ item }}
keyfile {{ chrony_key_file }} {% endfor %}
commandkey 1
driftfile {{ chrony_drift_file }}
log {{ chrony_log }}
logdir {{ chrony_log_dir }}
maxupdateskew {{ chrony_maxupdateskew }}
dumponexit
dumpdir {{ chrony_dump_dir }}
{% if chrony_initstepslew_enabled | bool %}
initstepslew {{ chrony_initstepslew_threshold }} {{ chrony_initstepslew_servers }}
{% endif %}
sourcedir /run/chrony-dhcp
driftfile /var/lib/chrony/drift
makestep 1.0 3
rtcsync
{% if chrony_allow | length > 0 %} {% if chrony_allow | length > 0 %}
{% for block in chrony_allow %} {% for block in chrony_allow %}
allow {{ block }} allow {{ block }}
{% endfor %} {% endfor %}
{% endif %} {% endif %}
logchange 0.5 keyfile /etc/chrony.keys
ntsdumpdir {{ chrony_ntsdumpdir }}
leapsectz right/UTC
hwclockfile /etc/adjtime logdir {{ chrony_logdir }}
rtcsync log {{ chrony_log | join(" ") }}