Skip to content

Commit

Permalink
Merge pull request #134 from davidphay/add_maxdistance_param
Browse files Browse the repository at this point in the history
Add maxdistance parameter to chrony
  • Loading branch information
geerlingguy authored Dec 16, 2024
2 parents a18da55 + 508e0df commit b1ffa0d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ Whether to restart the cron daemon after the timezone has changed.

Enable tinker panic, which is useful when running NTP in a VM.

ntp_chrony_maxdistance: '3'

Increase the maximum root distance between the host & the ntp source.

## Dependencies

None.
Expand Down
2 changes: 2 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,5 @@ ntp_restrict:
ntp_cron_handler_enabled: false

ntp_tinker_panic: false

ntp_chrony_maxdistance: '3'
3 changes: 3 additions & 0 deletions templates/chrony.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,6 @@ logdir /var/log/chrony

# Select which information is logged.
#log measurements statistics tracking

# sets the maximum root distance of a source to be acceptable for synchronisation of the clock.
maxdistance {{ ntp_chrony_maxdistance }}

0 comments on commit b1ffa0d

Please sign in to comment.