Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add makestep in chrony.conf.j2 #309

Closed
Tuxem opened this issue Dec 8, 2022 · 1 comment
Closed

Add makestep in chrony.conf.j2 #309

Tuxem opened this issue Dec 8, 2022 · 1 comment
Assignees

Comments

@Tuxem
Copy link

Tuxem commented Dec 8, 2022

Feature Request or Enhancement

  • Feature []

Summary of Request
In certain situations, the system clock might be so far adrift that this slewing process would take a very long time to correct the system clock.

Normally chronyd will cause the system to gradually correct any time offset, by slowing down or speeding up the clock as required. In certain situations, the system clock might be so far adrift that this slewing process would take a very long time to correct the system clock.

This directive forces chronyd to step the system clock if the adjustment is larger than a threshold value, but only if there were no more clock updates since chronyd was started than a specified limit (a negative value can be used to disable the limit).

This is particularly useful when using reference clocks, because the initstepslew directive works only with NTP sources.

An example of the use of this directive is:

makestep 0.1 3

This would step the system clock if the adjustment is larger than 0.1 seconds, but only in the first three clock updates.

Describe alternatives you've considered
To use a dedicated role for chrony and disable the part on CIS

Suggested Code

templates/chrony.conf

{% if rhel7cis_chrony_makestep is defined %}
makestep {{ rhel7cis_chrony_makestep }}
{% endif %}
@uk-bolly uk-bolly self-assigned this Mar 2, 2023
uk-bolly added a commit that referenced this issue Mar 6, 2023
has to be defined

Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
@uk-bolly
Copy link
Member

uk-bolly commented Mar 6, 2023

hi @Tuxem

I have added this option into the latest PR to devel. This is undocumented and would only be called if aware of the option as in the template.
Thank you for the suggestion and the time to provide a solution.

regards

uk-bolly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants