Files
computer-playbook/roles/svc-bkp-local-2-device/meta/variants.yml
kevinveenbirkenbachandClaude Opus 4.8 b82e8cee78 fix(svc-bkp-local-2-device): test the USB backup via a config variant
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>
2026-06-24 21:55:39 +02:00

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