mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-08 03:38:23 +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>
12 lines
618 B
YAML
12 lines
618 B
YAML
---
|
|
application_id: "svc-bkp-local-2-device"
|
|
entity_name: "{{ application_id | get_entity_name }}"
|
|
system_service_id: "{{ application_id }}"
|
|
|
|
BACKUP_TO_USB_DESTINATION: "{{ BACKUP_TO_USB_MOUNT}}{{ BACKUP_TO_USB_TARGET }}"
|
|
BACKUPS_SERVICE_MNT_NAME: "{{ BACKUP_TO_USB_MOUNT | trim('/') | replace('/','-') }}.mount"
|
|
|
|
BACKUP_TO_USB_MOUNT: "{{ lookup('config', application_id, 'services.' ~ entity_name ~ '.mount') }}"
|
|
BACKUP_TO_USB_TARGET: "{{ lookup('config', application_id, 'services.' ~ entity_name ~ '.target') }}"
|
|
BACKUP_TO_USB_SOURCE: "{{ lookup('config', application_id, 'services.' ~ entity_name ~ '.source') }}"
|