-
Notifications
You must be signed in to change notification settings - Fork 0
Deployment Scenarios
EZ-Kea figures out what to manage at startup, before serving a single request.
DHCPv4 and DHCPv6 are resolved independently, so a host running only
kea-dhcp4 lands in LIVE mode for v4 and DEMO mode for v6 — the two are never
collapsed into one shared answer.
In order, stopping at the first match:
-
Saved UI settings win. If a settings file exists (
ez-kea-settings.jsonin your data directory), EZ-Kea uses the paths recorded there. The mode is then LIVE unless the configured path looks like a sandbox (data/kea). -
A running daemon. EZ-Kea scans
/procfor a process whose name orargv[0]matcheskea-dhcp4/kea-dhcp6, then reads the config path from the-c/--configargument on its command line. If the daemon was started without an explicit-c, EZ-Kea assumes the packaged default (/etc/kea/kea-dhcp4.conf). → LIVE -
A standard config file on disk, even with nothing running. Checks
/etc/kea/kea-dhcp4.confthen/usr/local/etc/kea/kea-dhcp4.conf(and the v6 equivalents), plus any path already set via environment variable. → LIVE -
Nothing found. Falls back to a sandbox under
./data/, creating a config skeleton if needed. → DEMO
The mode is displayed as a badge in the navbar on every page.
The intended path. Install EZ-Kea anywhere on the same host and start it — it finds the daemons, binds to the exact config files they were launched with, and comes up in LIVE mode. Nothing to configure.
Discovery finds the config at its standard location and binds to it. You can edit configuration normally; applying changes will try to reload a daemon that isn't running, which fails harmlessly — start Kea and the config is already where it expects.
EZ-Kea creates ./data/ with a config skeleton and runs in DEMO mode. Useful
for evaluating the UI, modelling a network before building it, or developing
against EZ-Kea itself.
Changes are written to the sandbox only. Nothing touches a real DHCP server.
If your config lives somewhere discovery doesn't check, either set
DHCP_CONFIG_FILE / DHCP6_CONFIG_FILE in the environment, or point EZ-Kea at
it in the UI under Global Settings → Application Settings. UI settings
persist to ez-kea-settings.json and take priority over discovery on every
subsequent start (rule 1 above).
Supported, with extra settings for the container's filesystem namespace and reload mechanism. See Installation.
Discovery re-runs on every start, which is usually what you want — but not
always. If a real /etc/kea/kea-dhcp4.conf might appear on a host where you
want EZ-Kea to stay on a sandbox, pin it explicitly:
SETTINGS_FILE=/srv/ez-kea/data/ez-kea-settings.json
DHCP_CONFIG_FILE=/srv/ez-kea/data/kea-dhcp4.conf
DHCP6_CONFIG_FILE=/srv/ez-kea/data/kea-dhcp6.confEnvironment variables take priority over saved settings, and both take priority over process discovery.
Setup
Operating
Development
Repository · Live demo · Issues
Free for noncommercial use · commercial licensing