timesync icon indicating copy to clipboard operation
timesync copied to clipboard

add timesync_ntp_custom_settings variable for free-form local configs

Open jontow opened this issue 5 years ago • 20 comments

Found this small addition useful in my local installation, thought it might be helpful to others.

jontow avatar Oct 11 '19 20:10 jontow

The role used to have some variables for adding settings directly to the generated config files, but IIRC they were removed in order to hide the implementation-specific details.

Later was added a variable for selecting the NTP provider, so it may no longer be a goal.

mlichvar avatar Oct 21 '19 13:10 mlichvar

I would agree with this change, in fact I was checking how would be possible to add extra options in chrony.conf which should apply a similar change to the one proposed here. We rely on some customized settings and with the current templates we are not able to deploy them. I will create a new merge request for chrony based on this pull request (for keeping coherency in case that this is merged).

mcaubet avatar Aug 12 '20 06:08 mcaubet

[citest commit:ab66e75457880e7184a2d7b27d428f566ca7c40e]

richm avatar Aug 12 '20 14:08 richm

@mlichvar @pcahyna This seems like a good feature - do we have a best practices for specifying provider specific settings?

richm avatar Aug 12 '20 16:08 richm

[citest]

richm avatar Aug 12 '20 19:08 richm

I'm not aware of any best practices for injecting configuration snippets like this. I think it would be good to warn the users that there are no guarantees a working config will not stop working with a newer version of the role if the template is changed for instance. We don't want to make any assumption about what is injected in the config.

mlichvar avatar Aug 13 '20 07:08 mlichvar

[citest bad]

richm avatar Aug 14 '20 15:08 richm

[citest pending]

richm avatar May 04 '21 19:05 richm

[citest bad]

richm avatar May 04 '21 19:05 richm

[citest pending]

richm avatar May 04 '21 23:05 richm

I'll note that https://github.com/linux-system-roles/timesync/pull/80 did this for chrony settings and that PR includes a test to verify the custom settings - something similar should be done for the custom ntp settings

richm avatar Jun 10 '21 23:06 richm

[citest pending]

richm avatar Jun 14 '21 21:06 richm

[citest bad]

richm avatar Jul 06 '21 18:07 richm

[citest pending]

richm avatar Jul 13 '21 15:07 richm

please rebase to latest master branch

richm avatar Oct 04 '21 21:10 richm

[citest pending]

richm avatar Oct 11 '21 20:10 richm

[citest pending]

richm avatar Oct 11 '21 21:10 richm

@jontow please rebase on top of latest master branch

richm avatar Oct 18 '21 18:10 richm

[citest pending]

richm avatar Oct 20 '21 15:10 richm

@jontow please rebase on top of latest master branch

richm avatar Nov 08 '21 19:11 richm

closing due to inactivity

richm avatar Aug 01 '24 22:08 richm