From f9bf289ef082e36da79767e1978971c735879d53 Mon Sep 17 00:00:00 2001 From: CroneKorkN Date: Sun, 10 May 2026 18:06:35 +0200 Subject: [PATCH] left4me: assert nftables + systemd bundle membership MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Catches misconfiguration at bw test time if a node attaches left4me without those two bundles. Both contribute load-bearing metadata materializers (nftables/output rules; systemd/units → unit files). --- bundles/left4me/metadata.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bundles/left4me/metadata.py b/bundles/left4me/metadata.py index d589ced..2655dda 100644 --- a/bundles/left4me/metadata.py +++ b/bundles/left4me/metadata.py @@ -1,3 +1,11 @@ +assert node.has_bundle('nftables'), ( + f'{node.name}: bundle left4me requires bundle nftables (uses nftables/output for srcds DSCP marking)' +) +assert node.has_bundle('systemd'), ( + f'{node.name}: bundle left4me requires bundle systemd (declares units via systemd/units metadata)' +) + + defaults = { 'left4me': { 'gunicorn_workers': 1,