Conditional File Include

Eugene Grosbein eugen at
Tue Aug 8 07:56:48 UTC 2017

08.08.2017 3:23, Simon Hobson wrote:

> Eugene Grosbein <eugen at> wrote:
>> Just put all identical configuration to single included file
>> and include it to two distinct dhcpd.conf's each having own "failover peer"
>> statements and, perhaps, something other like "subnet".
> I suspect the reason is that it moves some of the config outside of the management process.

I don't see how that would occur.

> While it works, it means that the config is now split in 3 places -
> while the aim was to keep it in one place (with tracking of changes etc).

One cannot keep failover configs in one place without some kind of preprocessing.

And every part of config is still kept in one of 3 single places,
either in common part or in one of individual parts.

It just works.

More information about the dhcp-users mailing list