Files
computer-playbook/roles/sys-ctl-mtn-cert-deploy/templates/systemctl.service.j2
kevinveenbirkenbach a55c99ef62 refactor(compose): replace docker lookup with container and unify compose paths
- 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
2026-02-07 21:59:39 +01:00

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') }}