mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-06 10:59:59 +00:00
- Rename lookup plugin from `docker` to `container`
- Switch all lookups from `lookup('docker', ...)` to `lookup('container', ...)`
- Normalize compose file keys:
- docker_compose → compose
- docker_compose_override → compose_override
- docker_compose_ca_override → compose_ca_override
- Centralize compose path resolution via docker_paths_utils
- Update compose_file_args to always derive paths from DIR_COMPOSITIONS
- Align all roles, templates, and vars with container/compose naming
- Update and rename unit tests accordingly
This prepares the codebase for engine-agnostic container backends
(e.g. Docker ↔ Podman) and removes legacy docker-specific assumptions.
https://chatgpt.com/share/6987a7cc-d374-800f-99ad-bb4c8f92c59e
11 lines
397 B
Django/Jinja
11 lines
397 B
Django/Jinja
[Unit]
|
|
Description=TLS cert deploy to {{ lookup('container', application_id, 'directories.instance') }}
|
|
OnFailure={{ SYS_SERVICE_ON_FAILURE_COMPOSE }}
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
Environment="compose_cmd={{ compose_cmd }}"
|
|
ExecStart={{ system_service_script_exec }} \
|
|
{{ lookup('cert', application_id, 'files.cert') | dirname }} \
|
|
{{ lookup('container', application_id, 'directories.instance') }}
|