Re: [chrony-users] Using only pre-configured NTP servers or server list from DHCP |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-users Archives
]
- To: chrony-users@xxxxxxxxxxxxxxxxxxxx
- Subject: Re: [chrony-users] Using only pre-configured NTP servers or server list from DHCP
- From: Miroslav Lichvar <mlichvar@xxxxxxxxxx>
- Date: Wed, 4 May 2022 08:57:49 +0200
- Authentication-results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=mlichvar@xxxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1651647471; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=96eubvNiKS6pUmzbWS0dT70Jlw30QmpLjSSGVTikX90=; b=LVksXTieQHhXIipnvUWvcMAl53eVJ4UCP9iJlVUMWjcap76e9tXxMw44jD78SXABWVw9bX EniPqMkWIk2fyYzJpD6nOLQoECyKxKcF5F7O8nFSsOo5BRkJHYU1MLC0eXmUH3G3Jk8OIN RvaMk13tWYoid9rtGj7Jz8+qmZHzcXI=
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.
--
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.