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

Conflict with chronyd with CentOS 7 #22

Closed
brentg71 opened this issue Jan 4, 2017 · 10 comments
Closed

Conflict with chronyd with CentOS 7 #22

brentg71 opened this issue Jan 4, 2017 · 10 comments

Comments

@brentg71
Copy link

brentg71 commented Jan 4, 2017

Sorry, I'm not too certain if this is a reasonable request or not... anyway, whenever I use this role to set up a CentOS 7 system, ntpd fails to start because, by default, chronyd is enabled (and I would rather still use ntp). Do you have any plans to add functionality that would disable chronyd? Or is this beyond the scope of your role?

@geerlingguy
Copy link
Owner

@brentg71 - Interesting... I am using this on some CentOS 7 servers without an issue, maybe this is in a certain flavor of CentOS? I'm using it with a minimal install.

The automated tests are also passing on CentOS 7: https://travis-ci.org/geerlingguy/ansible-role-ntp/jobs/217686882

@brentg71
Copy link
Author

brentg71 commented Apr 6, 2017

Thanks very much for the response! I will see if I can reproduce the error. Most likely the flavor was a qcow2 image built for OpenStack? Maybe there's something custom configured here - in which case, please disregard everything! More info to follow.

@selyx
Copy link
Contributor

selyx commented Oct 30, 2017

If you enable "network time" during the CentOS 7 installation chronyd will be used instead of ntpd (since RedHat replaced ntpd on EL7 with chronyd). Would it maybe make sense to introduce a variable to choose your prefered ntp daemon?

@selyx
Copy link
Contributor

selyx commented Oct 30, 2017

I've created PR #43 which configures chronyd instead of ntpd on RHEL / CentOS 7.

@stale
Copy link

stale bot commented Mar 6, 2020

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!

Please read this blog post to see the reasons why I mark issues as stale.

@stale stale bot added the stale label Mar 6, 2020
@m8ram
Copy link

m8ram commented Mar 10, 2020

chrony is the recommended package in Centos/RHEL 7.

@stale
Copy link

stale bot commented Mar 10, 2020

This issue is no longer marked for closure.

@stale stale bot removed the stale label Mar 10, 2020
@m8ram
Copy link

m8ram commented Mar 10, 2020

@brentg71 - Interesting... I am using this on some CentOS 7 servers without an issue, maybe this is in a certain flavor of CentOS? I'm using it with a minimal install.

The automated tests are also passing on CentOS 7: https://travis-ci.org/geerlingguy/ansible-role-ntp/jobs/217686882

The reason the role works on a minimal install is that neither chronyd norr NTP are installed.
@brentg71 probably has installed chronyd before running this role.

@geerlingguy
Copy link
Owner

Ah, makes sense. I haven't decided yet if I'm going to try to change this role to configure chrony or ntp (that adds significant complexity because there are some differences and I would have to choose a default (and set that default) per OS). Other option is to have a separate role for chrony.

@geerlingguy
Copy link
Owner

See #72 (comment) — this role now defaults to chrony for CentOS 7 and later (but you can still use ntp on CentOS 7 if you desire).

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

No branches or pull requests

4 participants