-
-
Notifications
You must be signed in to change notification settings - Fork 150
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
Force sync system clock not working #90
Comments
@ko-be the recipe runs cleanly. can you elaborate on how you determine it is not running properly? also, if you have this working reliably it'd help to see your code. please open a PR if you have a mockup available. |
@gmiranda23 we are actually still running into this issue, and very sporadically. Once we figure out the exact cause and figure out a fix, I'd be happy to open a PR to fix the issue. For now, we've had to disable this to get |
I am also facing the similar problem on CIS CentOS 7 and output is
How should we solve this? |
I have the same issue on CentOS 7. It fails randomly about 4 out of 10 times. |
Greetings, |
I run into the same issue in centos 7
` I figured out, that this occurs after a reboot of the node. If I start ntp daemon manually with |
Knappek, to enable a service on boot in centos 7: systemctl enable servicename.service |
Yes, it needs to be implemented in this cookbook. The cookbook fails after a reboot at this LWRP: https://github.com/gmiranda23/ntp/blob/master/recipes/default.rb#L99 |
Knappek, I submitted a pull request that fixed the bug, at least for us. It is mentioned earlier in this thread, maybe you could try it out. |
Thank you, I will try that out. |
On a large number of our CentOS 6 & 7 machines, the 'ntpd -q' command (in https://github.com/gmiranda23/ntp/blob/master/recipes/default.rb#L96) is not running properly as the ntpd service does not appear to be stopping before running the command. To work around it, we have been setting ['ntp']['sync_clock'] to false.
Instead of an execute block that notifies the ntpd service (https://github.com/gmiranda23/ntp/blob/master/recipes/default.rb#L92), if it's rewritten to be a service block that stops ntpd, then runs ntpd -q, then another service block that starts ntpd, it appears to work properly.
The text was updated successfully, but these errors were encountered: