mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-07 03:15:56 +00:00
Replace the empty-config compose deploy failure (assert BACKUP_TO_USB_MOUNT != "") with a working test path: - meta/variants.yml: pin non-empty mount/target/source so the CI matrix (which applies variants) deploys the plug-triggered backup service. No device appears in CI, so the .mount unit only waits and the oneshot backup never fires. - tasks/main.yml: fix the assert typo BACKUP_TO_USB_target -> ..._TARGET. The lowercase name was undefined, so the assert would still error even with the variant config present. - vars/main.yml: derive entity_name via get_entity_name and build the config lookup path from it instead of hardcoding 'local-2-device'. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
13 lines
472 B
YAML
13 lines
472 B
YAML
---
|
|
# Matrix-deploy variant overrides for svc-bkp-local-2-device.
|
|
# See docs/contributing/artefact/files/role/variants.md for the file format.
|
|
|
|
# variant 0: pin non-empty USB backup paths so the config assert passes and the
|
|
# plug-triggered backup service deploys. No device appears in CI, so the .mount
|
|
# unit only waits and the oneshot backup never fires.
|
|
- services:
|
|
local-2-device:
|
|
mount: /mnt/backup-to-device
|
|
target: /infinito
|
|
source: /Backups
|