Re: [chrony-users] Does chrony support the DHCP option ntp-servers? |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-users Archives
]
- To: chrony-users@xxxxxxxxxxxxxxxxxxxx
- Subject: Re: [chrony-users] Does chrony support the DHCP option ntp-servers?
- From: Miroslav Lichvar <mlichvar@xxxxxxxxxx>
- Date: Tue, 31 Mar 2020 17:09:23 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1585667369; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=cKLrrdQjh8pbUbpcu07k8B4yFJEEdN/unwDMsazpilo=; b=A9JmGwJ3XjLsbCKpoHN4isIPYpPqBcWm+GuqDgjwe/1PfrvdPtUNcmlvquMV6OxQeR89KE jj8U04ysRkV/SCHbB95aeDRo0l9arRh6es7fSGwBUCxOIiJ6tPcVFWxM6A28YXeUpWPh2A V6ILI1YCJfROUy8pqxxeZylAw6qL83o=
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.