ntp: add logdir + local + logchange support
This commit is contained in:
parent
f5f570f635
commit
76f76a0ca4
3 changed files with 10 additions and 0 deletions
|
@ -11,6 +11,7 @@
|
||||||
- 1.pool.ntp.org
|
- 1.pool.ntp.org
|
||||||
- 2.pool.ntp.org
|
- 2.pool.ntp.org
|
||||||
- 3.pool.ntp.org
|
- 3.pool.ntp.org
|
||||||
|
chronyd__local_stratum: 10
|
||||||
roles:
|
roles:
|
||||||
- chronyd
|
- chronyd
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,9 @@ chronyd__pools: []
|
||||||
chronyd__key_file: /etc/chrony/chrony.keys
|
chronyd__key_file: /etc/chrony/chrony.keys
|
||||||
chronyd__drift_file: /var/lib/chrony/chrony.drift
|
chronyd__drift_file: /var/lib/chrony/chrony.drift
|
||||||
chronyd__nts_dump_dir: /var/lib/chrony
|
chronyd__nts_dump_dir: /var/lib/chrony
|
||||||
|
chronyd__log_dir: /var/log/chrony
|
||||||
chronyd__max_update_skew: 100.0
|
chronyd__max_update_skew: 100.0
|
||||||
chronyd__rtcsync: true
|
chronyd__rtcsync: true
|
||||||
chronyd__allow_networks: []
|
chronyd__allow_networks: []
|
||||||
|
chronyd__log_change_seconds: 0.5
|
||||||
...
|
...
|
||||||
|
|
|
@ -7,6 +7,7 @@ pool {{ pool }} iburst
|
||||||
keyfile {{ chronyd__key_file }}
|
keyfile {{ chronyd__key_file }}
|
||||||
driftfile {{ chronyd__drift_file }}
|
driftfile {{ chronyd__drift_file }}
|
||||||
ntsdumpdir {{ chronyd__nts_dump_dir }}
|
ntsdumpdir {{ chronyd__nts_dump_dir }}
|
||||||
|
logdir {{ chronyd__log_dir }}
|
||||||
|
|
||||||
log tracking measurements statistics
|
log tracking measurements statistics
|
||||||
|
|
||||||
|
@ -16,6 +17,12 @@ maxupdateskew {{ chronyd__max_update_skew | float }}
|
||||||
rtcsync
|
rtcsync
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% if chronyd__local_stratum is defined %}
|
||||||
|
local stratum {{ chronyd__local_stratum | int }}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
logchange {{ chronyd__log_change_seconds | float }}
|
||||||
|
|
||||||
leapsectz right/UTC
|
leapsectz right/UTC
|
||||||
|
|
||||||
{% for network in chronyd__allow_networks %}
|
{% for network in chronyd__allow_networks %}
|
||||||
|
|
Loading…
Reference in a new issue