Skip to content

Commit

Permalink
Merge pull request #35 from aw1cks-forks/master
Browse files Browse the repository at this point in the history
Allow local stratum to be skipped
  • Loading branch information
mrlesmithjr authored Jun 24, 2022
2 parents 47a1808 + cfd6df9 commit 969eb53
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ chrony_dumpdir: /var/lib/chrony
# of a high value like 10 for the local command prevents the machine’s own time
# from ever being confused with real time, were it ever to leak out to clients
# that have visibility of real servers.
#
# N.B. this value can be set to null, which results in the `local stratum` option being omitted entirely
chrony_local_stratum: 10

# The log command indicates that certain information is to be logged. It
Expand Down
2 changes: 2 additions & 0 deletions templates/etc/chrony/chrony.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ driftfile /var/lib/chrony/chrony.drift
dumpdir {{ chrony_dumpdir }}
dumponexit
keyfile /etc/chrony/chrony.keys
{% if chrony_local_stratum | bool | default(false) %}
local stratum {{ chrony_local_stratum }}
{% endif %}
log {{ chrony_log|join(' ') }}
logchange 0.5
logdir {{ chrony_logdir }}
Expand Down

0 comments on commit 969eb53

Please sign in to comment.