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" <chrony-users@xxxxxxxxxxxxxxxxxxxx>
- Subject: RE: [chrony-users] Using only pre-configured NTP servers or server list from DHCP
- From: Bryan Evenson <bevenson@xxxxxxxxxxxxxx>
- Date: Wed, 4 May 2022 14:55:20 +0000
- Accept-language: en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=melinkcorp.com; dmarc=pass action=none header.from=melinkcorp.com; dkim=pass header.d=melinkcorp.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=2aulMu7Tcfh0NmSyV68JuNMtp9Ff+A2G14sRRgpiD0A=; b=UqqRkBFsgeknSfmSsL0lGYq+D2vj+MLU5KAF8I/a7EKWe3dn0N49F2laSrYF/3u6IX4+l08YU1Ck101qflgIt7kV4/dRDUmfHG08zVdUIFCVBfwKcvc634ma1tzeLh5tKafVNyVQvqpr4Xp98Xccu/dMe0Thok7Fk8Fyt32LrfRoZnoqQUMV9Otf1XodUf10PIJRveGcRl5nS1qKkRriSBeZ7FG6142kx9Y2M8f/LdzLszbrfC90udpfBWklLCYzMozMEQZbTrhzA5lLb83O/gTBjhaw5kWVJhXFebGnEaNQWeBLKT1BQZlJ8yENcLGfXzbt3oI94PkILzH0IMAFeQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MLyVVCnh/2/h5aCbUt2e+cpOlrUNFdq/xw3lCTV2CDcki/5CmGEqaKLF6OleHs8ACWbbcDonpoKBUSa9Po6HyFHMakXYvyBiNtGRzqJZULvYJPNKbt6PxotvFlCJ4ZTHjmSlgFT2nqLVeYJtxGAGoZK25h7sFq7QBoI+za4MKs+ct1C607ZSufPbHYlS0bNV5Ckwas5cvzpd6NxkYdV9k2PuGomuKWKi/4lR9EEP1avvnkn30qGhNJ+sRr3PIa0dw6YrnF1rhwpSQX9IvnonGA8gSm+aPTlV881LLgPaw5UfdzHn3R8OdD0iTpiG4+ySVzmoSZa84yhquSyEAu41ng==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=melinkcorp.com;
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Melink.onmicrosoft.com; s=selector1-Melink-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=2aulMu7Tcfh0NmSyV68JuNMtp9Ff+A2G14sRRgpiD0A=; b=WRRZ7blsJQ1efBeA+OW7I52TBHNIN7wjCv0vxwRQPMg6HMwaCoH71sFsKQQUM7iqKYy68THsKTjaZawcJRT4vkpbChHJ7YJBZK9wJA8hEU16gwg/GdIn8Zmy9ThqnZrrVDbUlLA8NnAGRCcviKIBpazt/QjdU4wW5HRVpiBvbl3i0HgJTs6rgtzrNgbfelLA4EM10/gw82a3rdxYmq/nmrjq2M6LgZOjeGkj+81F+mcufcqyWs4EBH3xTi9wiPKPME4PLk96mmdlPFAY/DlVxEL+foBreHwO0XjYJyHAo/lc4kPRdrpPA0Uuqka5Wq0UI10tI48D/7Kt8s172YTMPg==
- Thread-index: AdhfAsgbOIqNmp9PTrujdlxiFRnDUgAgXv6AABCdw7A=
- Thread-topic: [chrony-users] Using only pre-configured NTP servers or server list from DHCP
Miroslav,
> -----Original Message-----
> From: Miroslav Lichvar <mlichvar@xxxxxxxxxx>
> Sent: Wednesday, May 4, 2022 2:58 AM
> To: chrony-users@xxxxxxxxxxxxxxxxxxxx
> 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@xxxxxxxxxxxxxxxxxxxx
> with "unsubscribe" in the subject.
> For help email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
> with "help" in the subject.
> Trouble? Email listmaster@xxxxxxxxxxxxxxxxxxxx.
--
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.