Hi Carsten,

you can use an standard include tag, such like

"reservations": [
        <?include "/etc/kea/res01.json"?>
        ,
        <?include "/etc/kea/res02.json
        ,
        <?include "/etc/kea/res03.json"?>
    ],

and put the configuration in another file. You have to decide, how much from 
the configuration tags you will put to an external file. For more overview, I 
put the main tag (reservations) to the central configuration file. It's up tou 
you and your architecture how much you will exlude to an external file.

https://kea.readthedocs.io/en/kea-2.0.2-doc/arm/config.html

Mark




-----Ursprüngliche Nachricht-----
Von: Kea-users <[email protected]> Im Auftrag von Carsten 
Strotmann
Gesendet: Montag, 15. August 2022 09:37
An: [email protected]
Betreff: [Kea-users] Wildcard Includes in Kea configuration

Hi,

(this is a question that came up as a follow up from a Kea DHCP training from 
one participant)

is it possible to include multiple files into the Kea configuration using 
wildcards in the include statement?

This might help with a setup where the configuration file has been split into 
snippets managed by a configuration management tool.

I recognise that because of the nature of the Kea configuration file format 
(JSON) includes are very much position dependent and such a scheme can easy 
break in the case where the config files are manually managed, but it would 
help with automatic management systems (puppet, chef, ansible etc).

Would such a function be useful?

Greetings

Carsten


-- 
ISC funds the development of this software with paid support subscriptions. 
Contact us at 
https://urldefense.com/v3/__https://www.isc.org/contact/__;!!J748QdifiTU!j89PlWF1KpLHAgGbqclkGpX2cXndlB69kh2lMuG_JdhdxsqblLbSG0lgbjc-OhMt9SpgvrjLs62jhjjrvyrOVXN96-g$
   for more information.

To unsubscribe visit 
https://urldefense.com/v3/__https://lists.isc.org/mailman/listinfo/kea-users__;!!J748QdifiTU!j89PlWF1KpLHAgGbqclkGpX2cXndlB69kh2lMuG_JdhdxsqblLbSG0lgbjc-OhMt9SpgvrjLs62jhjjrvyrO2_bsFMI$
  .

Kea-users mailing list
[email protected]
https://urldefense.com/v3/__https://lists.isc.org/mailman/listinfo/kea-users__;!!J748QdifiTU!j89PlWF1KpLHAgGbqclkGpX2cXndlB69kh2lMuG_JdhdxsqblLbSG0lgbjc-OhMt9SpgvrjLs62jhjjrvyrO2_bsFMI$
  
-- 
ISC funds the development of this software with paid support subscriptions. 
Contact us at https://www.isc.org/contact/ for more information.

To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.

Kea-users mailing list
[email protected]
https://lists.isc.org/mailman/listinfo/kea-users

Reply via email to