Add managed DirectAdmin restore workers and node transport

This commit is contained in:
parkel committed 2026-12-04 15:24:14 +01:00
1 parent 83101e8cdc
commit a7f71ae218
18 files changed
+827 -11

No files matched your search

+11
View File
@@ -41,6 +41,11 @@ PANEL_UNITS = (
"coulobre-beat.service",
)
HEALTH_TIMER = "coulobre-health.timer"
DIRECTADMIN_UNITS = (
"coulobre-directadmin-restore.socket",
"coulobre-directadmin-restore@.service",
"coulobre-directadmin-import-worker.service",
)
BASE_PACKAGES = (
"apache2",
"mariadb-server",
@@ -1015,6 +1020,9 @@ class Installer:
if target.mode != "off":
workers.append(roles.configure_role(self, name, target))
if self.plan.mail.mode != "off":
install_unit(
"coulobre-mail-apply@.service.d/zz-directadmin.conf"
)
workers.extend(
run(
BINDIR / "python",
@@ -1032,12 +1040,15 @@ class Installer:
self.progress("Validating Apache and starting the panel services.")
self.apache()
identity("coulobre-health")
group("coulobre-mail-provisioning")
for unit in (
*PANEL_UNITS,
*DIRECTADMIN_UNITS,
"coulobre-health.service",
HEALTH_TIMER,
):
install_unit(unit)
workers.extend((DIRECTADMIN_UNITS[0], DIRECTADMIN_UNITS[2]))
workers.append(
install_worker(
"coulobre-operator",