[kea-dev] Idea: dynamic server tag in configuration backend configuration
Carsten Strotmann
carsten at strotmann.de
Thu Oct 22 13:44:45 UTC 2020
Hi,
while working on the Kea Webinar chapter, I found that the Kea
DHCP[4|6]
configuration can be the same on all machines using the config
backend,
except for the "server-tag".
Proposal:
Making the "server-tag" dynamic, e.g. fetched from some outside
source
(system hostname, file, IP-Address ...), would allow for a
completely
static configuration file. This would allow Kea DHCP servers to be
created
from a template or cloned.
Example:
"Dhcp6": {
"server-tag": "$HOSTNAME",
"config-control": {
"config-databases": [{
"type": "mysql",
"name": "kea_config_db",
"user": "kea",
"password": "secure-password",
"host": "2001:db8:568::568"
}],
"config-fetch-wait-time": 120
},
[...]
}
Possible dynamic sources for the server tag:
* OS hostname
* OS Type/Version
* network node hostname (uname -n)
* text file containing a single server-tag
* a shell script returning a server-tag to stdout
* IP-Address/MAC-Address on some interface
* asset tag from DMI/SMBios (demidecode)
Would this be useful?
Greetings
Carsten
More information about the kea-dev
mailing list