Re: [chrony-users] Does chrony support the DHCP option ntp-servers?

[ Thread Index | Date Index | More chrony.tuxfamily.org/chrony-users Archives ]


On Tue, Mar 31, 2020 at 03:03:17PM +0000, Jason W. Lewis wrote:
> Miroslav,
> You are correct, this is about the client-side; I've already got my DHCP server configured.  
> 
> After reading your and Holger's comments, I did realize I was going somewhat in the wrong direction, though.  As I now understand it, the configuration is (at least mostly) with the DHCP client.  I am working on this on CentOS 8, and am using Network Manager.  I see that NM has a chrony script (/etc/NetworkManager/dispatcher.d/20-chrony) which, when the network goes up or down, toggles the on/offline status of chrony.  I also see that it has a script (11-dhclient) looks to see if there are scripts in /etc/dhclient.d, and runs them.  One of the scripts it looks for is one for chrony.  Unfortunately, that directory doesn't exist, much less the script itself.

That missing script is /etc/dhcp/dhclient.d/chrony.sh. It all should
work out of the box. I maintain the chrony package in RHEL/CentOS. :)

> To further potentially complicate things, These systems are PXE booting, so they're getting their info from a DHCP server before the kernel and the OS load.

I wouldn't expect that to matter. NetworkManager should make its own
DHCP request.

-- 
Miroslav Lichvar


--
To unsubscribe email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "unsubscribe" in the subject.
For help email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "help" in the subject.
Trouble?  Email listmaster@xxxxxxxxxxxxxxxxxxxx.


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/