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

Allow logconfig option in ntp.conf #250

Open
ericpaliotta opened this issue Jun 5, 2024 · 0 comments
Open

Allow logconfig option in ntp.conf #250

ericpaliotta opened this issue Jun 5, 2024 · 0 comments
Labels
Feature Request Enhancement to existing functionality or new functionality

Comments

@ericpaliotta
Copy link
Contributor

🙍 Problem Statement

I have a use-case for which I would like to have more verbose ntp logging on some Ubuntu servers. This can be achieved using the logconfig =all option in the ntp.conf file. However, it seems like the ntp.conf.erb file in this repository does not have this option available via an attribute.

❔ Possible Solution

There is a simple solution to add a few lines to ntp.conf.erb which is something like this (in pseudo-code):

<% node['ntp']['logconfig_all'] -%>
logconfig =all
<% end -%>

I think this should work on most OSs (not sure though, I am not very familiar with NTP).

⤴️ Describe alternatives you've considered

I've considered using a bash resource to append this option manually to the ntp.conf. In addition, I tried to overwrite the config file using my own template. However, doing so triggers an ntp restart on each Chef run (this is not ideal for a number of reasons).

P.S. Please let me know if you need more information, or if I have missed a preexisting solution to this problem!

@ericpaliotta ericpaliotta added the Feature Request Enhancement to existing functionality or new functionality label Jun 5, 2024
ericpaliotta added a commit to ericpaliotta/ntp that referenced this issue Jun 19, 2024
Added option for more verbose logging configuration (logconfig =all)

Signed-off-by: ericpaliotta <[email protected]>
ericpaliotta added a commit to ericpaliotta/ntp that referenced this issue Jun 19, 2024
Added the ability to modify logconfig with attributes

Signed-off-by: ericpaliotta <[email protected]>
ericpaliotta added a commit to ericpaliotta/ntp that referenced this issue Jun 19, 2024
Added option to set logconfig with an attribute. By-default nothing is
added to ntp.conf

Signed-off-by: ericpaliotta <[email protected]>
ericpaliotta added a commit to ericpaliotta/ntp that referenced this issue Jun 19, 2024
Added capability to set logconfig using an attribute

Signed-off-by: ericpaliotta <[email protected]>
@ericpaliotta ericpaliotta mentioned this issue Jun 19, 2024
2 tasks
Stromweld pushed a commit that referenced this issue Jul 15, 2024
Added capability to set logconfig using an attribute

Signed-off-by: ericpaliotta <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request Enhancement to existing functionality or new functionality
Projects
None yet
Development

No branches or pull requests

1 participant