feat(config): add swarmctl-host to INI, env, CLI; drop hardcoded bind from systemd unit
[swarm] swarmctl-host → DECNET_SWARMCTL_HOST so operators set the bind address once in decnet.ini; `decnet swarmctl` and the systemd unit both resolve it via envvar — no --host/--port pinned on ExecStart.
This commit is contained in:
@@ -10,10 +10,12 @@ User={{ user }}
|
||||
Group={{ group }}
|
||||
WorkingDirectory={{ install_dir }}
|
||||
EnvironmentFile=-{{ install_dir }}/.env.local
|
||||
# Default bind is loopback — the controller is a master-local orchestrator
|
||||
# reached by the CLI and the web dashboard, not by workers.
|
||||
# Bind/port resolved from /etc/decnet/decnet.ini ([swarm] swarmctl-host /
|
||||
# swarmctl-port) — falls back to 127.0.0.1:8770 when the keys are absent.
|
||||
# Pass --host/--port on the ExecStart line only if you want to pin them
|
||||
# regardless of what the INI says.
|
||||
Environment=DECNET_SYSTEM_LOGS=/var/log/decnet/decnet.swarmctl.log
|
||||
ExecStart={{ venv_dir }}/bin/decnet swarmctl --host 127.0.0.1 --port 8770
|
||||
ExecStart={{ venv_dir }}/bin/decnet swarmctl
|
||||
StandardOutput=append:/var/log/decnet/decnet.swarmctl.log
|
||||
StandardError=append:/var/log/decnet/decnet.swarmctl.log
|
||||
|
||||
|
||||
Reference in New Issue
Block a user