Install multiple panels and shared receivers from one inventory

This commit is contained in:
parkel committed 2026-11-26 22:10:34 +01:00
1 parent 0ade3ac001
commit 082f601f2a
12 files changed
+1361 -93

No files matched your search

+2 -2
View File
@@ -343,7 +343,7 @@ class Plan:
return {**asdict(self), "hosting": self.hosting.parameters()}
def parse_plan(data):
def parse_plan(data, *, remote=False):
keys(data, {"panel", "admin", "dns", "mail", "hosting"}, "installation")
panel = data.get("panel")
admin = data.get("admin")
@@ -358,7 +358,7 @@ def parse_plan(data):
origin_port = 8080
if access == "tls":
keys(panel, {"hostname", "access", "certificate", "key"}, "panel")
chain, key = certificate(panel, "the panel")
chain, key = tls_files(panel, host, "the panel", remote=remote)
elif access == "acme":
keys(panel, {"hostname", "access"}, "panel")
chain, key = tls_files({"tls": "acme"}, host, "the panel")