From 896988d4302104934658388efea56bd56b12941b Mon Sep 17 00:00:00 2001 From: Peter van Arkel Date: Sun, 22 Nov 2026 00:16:11 +0100 Subject: [PATCH] Document the remote node setup and enrolment workflow --- docs/deployment.md | 85 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) diff --git a/docs/deployment.md b/docs/deployment.md index 7be731b..858f4ed 100644 --- a/docs/deployment.md +++ b/docs/deployment.md @@ -1394,6 +1394,91 @@ Use the values for each service below when following the commands. | Worker unit | `coulobre-dns-publisher.service` | `coulobre-mailbox-provisioner.service` | | Panel flag | `COULOBRE_LOCAL_DNS_PUBLISHING=1` | `COULOBRE_LOCAL_MAILBOX_PROVISIONING=1` | +### Install and enrol a node + +Use the same verified Coulobre source release on the panel host and the +destination. The destination needs a systemd host running Debian 13, +Ubuntu 24.04, or Ubuntu 26.04, with access to its APT repositories and Python +dependencies. Open the destination's SSH port to the panel host. Use your +existing administrator account to install the node. + +From the unpacked release on the destination, run the installer for the roles +you want. The installer uses the distribution's packages, installs Coulobre in +`/opt/coulobre`, and enables the receiver sockets. + +```sh +sudo ./deploy/install-node.sh dns mail +``` + +For an installation started from the central host, run the same command +through your existing administrative SSH connection after copying and +verifying the source release on the destination. + +```sh +ssh -t operator@node.example.org 'cd /path/to/coulobre-release && sudo ./deploy/install-node.sh dns' +``` + +Set up [BIND9](development.md#apply-a-zone-manifest) or +[Postfix and Dovecot](development.md#apply-a-mailbox-manifest) for the role +before enrolment. This includes the BIND9 control channel or the Postfix +lookups, Dovecot LMTP socket, and mail TLS configuration. Configure a fresh +service once. Repeat the installer to add roles or restore missing receiver +units. It reuses the installed release and preserves service configuration, +zone files, and mailbox data. Use the normal release upgrade procedure to +change Coulobre versions. + +Run `sudo /opt/coulobre/bin/coulobre-node-setup check-receiver dns` +or use `mail` to check the destination configuration locally. + +On the panel host, prepare its identity for the role. This example uses DNS. +For mail, substitute `mail` and the corresponding worker and flag from the +table. + +```sh +sudo apt install openssh-client +sudo /opt/coulobre/bin/coulobre-node-setup prepare-panel dns > panel-dns.pub +``` + +Transfer `panel-dns.pub` to the destination and authorize it there. Repeating +this command keeps the same key. Run it once for each panel that shares the +receiver. + +```sh +sudo /opt/coulobre/bin/coulobre-node-setup authorize-panel dns panel-dns.pub +``` + +Get the destination's SSH host **public** key through the administrator +connection and save it as `node-host.pub` on the panel host. Verify the node +host and fingerprint before enrolling it. From the unpacked release on the +panel host, run the following commands. Set `--port` if the destination uses +a different SSH port. + +```sh +sudo /opt/coulobre/bin/coulobre-node-setup enrol-panel dns node.example.org node-host.pub +sudo /opt/coulobre/bin/coulobre-node-setup check-panel dns +``` + +Enrolment checks the pinned SSH host identity and the restricted receiver +account, verifies the destination services and release, and tests the panel's +systemd relay socket. The check reads service status on the node. To activate +the feature, set the panel flag from the table in `/etc/coulobre/panel.env`, +restart the panel, general worker and scheduler, and enable the role worker. + +```sh +sudo systemctl restart coulobre-panel coulobre-worker coulobre-beat +sudo systemctl enable --now coulobre-dns-publisher.service +``` + +Use **Publish zone** or **Provision mailbox** on a test hosting account and +verify the result. If the panel already has a local service or a different +relay configured for this role, follow the service migration steps before +changing destinations. + +### Manual setup + +The following commands show the files and identities used by the installer. +Use them for an existing deployment with its own SSH or systemd configuration. + ### Prepare the panel's SSH identity Start from the same Coulobre source release on both hosts. For DNS, set these