RE: Using only pre-configured NTP servers or server list from DHCP

Bryan Evenson <[email protected]>
Newsgroups gmane.comp.time.chrony.user
Message-ID <CH0PR20MB3948CFE48D67DC4DB0EF6987BBC39@CH0PR20MB3948.namprd20.prod.outlook.com>
Miroslav,

> -----Original Message-----
> From: Miroslav Lichvar <[email protected]>
> Sent: Wednesday, May 4, 2022 2:58 AM
> To: [email protected]
> Subject: Re: [chrony-users] Using only pre-configured NTP servers or server
> list from DHCP
> 
> On Tue, May 03, 2022 at 04:17:56PM +0000, Bryan Evenson wrote:
> > Is there any way in chrony.conf to say, "ignore any NTP servers listed
> above"?  Or, is there a way to use multiple configuration files.  For example,
> chrony.conf is the base configuration, then tell it to use either
> chrony_defaultservers.conf or chrony_dhcpservers.conf?  Or does someone
> have any other methods that they have implemented that I haven't
> considered?
> 
> With the confdir and sourcedir directives you can override a chrony config file
> by adding another config file with same name to a different directory.
> 
> For example, if chrony.conf had
> sourcedir /etc/chrony/dhcp-servers /etc/chrony/default-servers
> 
> and you had only this file in those directories /etc/chrony/default-
> servers/foo.sources
> 
> the sources from that file would be used, but if you created
> /etc/chrony/dhcp-servers/foo.sources
> 
> the first file would be ignored.
> 

My system was still on chrony version 3.5, which didn't have the sourcedir option yet.  I've upgraded to chrony 4.1 and this is doing exactly what I was looking for.  Thanks for the help!

Thanks,
Bryan

> --
> Miroslav Lichvar
> 
> 
> --
> To unsubscribe email chrony-users-request-kWFZVVI9zxvPqho9SqqRMmD2FQJk+8+b@public.gmane.org
> with "unsubscribe" in the subject.
> For help email chrony-users-request-kWFZVVI9zxvPqho9SqqRMmD2FQJk+8+b@public.gmane.org
> with "help" in the subject.
> Trouble?  Email [email protected]


-- 
To unsubscribe email chrony-users-request-kWFZVVI9zxvPqho9SqqRMmD2FQJk+8+b@public.gmane.org 
with "unsubscribe" in the subject.
For help email chrony-users-request-kWFZVVI9zxvPqho9SqqRMmD2FQJk+8+b@public.gmane.org 
with "help" in the subject.
Trouble?  Email [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.