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 stratumweight parameter #56

Merged
merged 1 commit into from
Dec 5, 2019
Merged

Conversation

alexjfisher
Copy link
Member

Currently, for RedHat and Debian, the module has stratumweight
hardcoded to 0. Chrony's default has been 0.001 since version 2.0 and
the default configuration file shipped with EL7 doesn't set it to 0
either. (I suspect a similar situation with modern Debian OSes).

The new parameter defaults to undef and leaves out explicitly
configuring stratumweight in the configuration file.
This is technically a breaking change as to preserve the
old behaviour, it has to be set to 0. I still think this is
preferable to defaulting the parameter to 0 (for OSes other than ArchLinux)
and expecting users to know that 0.001 would be a better choice.

Currently, for RedHat and Debian, the module has `stratumweight`
hardcoded to `0`.  Chrony's default has been `0.001` since version 2.0 and
the default configuration file shipped with EL7 doesn't set it to `0`
either. (I suspect a similar situation with modern Debian OSes).

The new parameter defaults to `undef` and leaves out explicitly
configuring `stratumweight` in the configuration file.
This is technically a breaking change as to preserve the
old behaviour, it has to be set to `0`.  I still think this is
preferable to defaulting the parameter to `0` (for OSes other than ArchLinux)
and expecting users to know that `0.001` would be a better choice.
@@ -40,6 +40,7 @@
Optional[String] $smoothtime = $chrony::params::smoothtime,
Optional[Enum['system', 'step', 'slew', 'ignore']] $leapsecmode = $chrony::params::leapsecmode,
Optional[Float] $maxslewrate = $chrony::params::maxslewrate,
Optional[Numeric] $stratumweight = $chrony::params::stratumweight,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Numeric instead of Float to allow 0.

@aboe76 aboe76 merged commit 6517999 into voxpupuli:master Dec 5, 2019
@aboe76
Copy link
Contributor

aboe76 commented Dec 5, 2019

@alexjfisher nice work, thanks for this, will cut a new version this weekend.

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

Successfully merging this pull request may close these issues.

2 participants