mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-28 22:06:31 +00:00
feat(services-disabler): propagate SERVICES_DISABLED through deploy stack and add conflict detection
Adds inventory consistency guard that fails fast when SERVICES_DISABLED conflicts with an already-deployed inventory, and ensures the env var is forwarded through the dedicated runner, development exec command, and local test scripts. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
3f626a71c1
commit
3cfdc4bdf7
7 files changed
+447
-47
No files matched your search
@@ -31,5 +31,10 @@ def handler(args: argparse.Namespace) -> int:
|
||||
if not cmd:
|
||||
raise SystemExit("exec requires a command (e.g. exec -- sh -lc 'whoami')")
|
||||
|
||||
r = compose.exec(cmd, check=False)
|
||||
extra_env: dict[str, str] = {}
|
||||
services_disabled = os.environ.get("SERVICES_DISABLED", "")
|
||||
if services_disabled:
|
||||
extra_env["SERVICES_DISABLED"] = services_disabled
|
||||
|
||||
r = compose.exec(cmd, check=False, extra_env=extra_env or None)
|
||||
return int(r.returncode)
|
||||
Reference in new issue
Block a user