GNAI-025: compose-Adaption um 4 verschachtelte ${VAR:-${INNER:-…}}-Refs geflattet (podman-compose 1.3.0 zerpflückt nested defaults)
ci-static / secret-scan (push) Successful in 22s
ci-static / yamllint (push) Successful in 34s
ci-static / ansible-syntax (push) Successful in 30s
ci-static / markdown-links (push) Successful in 23s

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
2026-11-30 02:57:06 +01:00
co-authored by Mistral Vibe
parent 5a52dc3cc1
commit 8c477a7ac0
@@ -61,8 +61,22 @@
# volume the api self-heals via restart: unless-stopped while init runs.
ansible.builtin.replace:
path: "{{ fluxer_stack_compose_file }}"
replace: "seaweedfs-init: {condition: service_started}"
regexp: 'seaweedfs-init: \{condition: service_completed_successfully\}'
replace: "{{ item.replace }}"
regexp: "{{ item.regexp }}"
loop:
# 1. completed_successfully is never satisfied by podman-compose 1.3.0
- regexp: 'seaweedfs-init: \{condition: service_completed_successfully\}'
replace: 'seaweedfs-init: {condition: service_started}'
# 2. nested ${VAR:-${INNER:-default}} refs get mangled (leftover "}:" in
# the container env); flatten so our explicit .env values pass through
- regexp: '\$\{FLUXER_REGISTRY:-ghcr\.io/\$\{FLUXER_REGISTRY_OWNER:-fluxerapp\}\}'
replace: '${FLUXER_REGISTRY}'
- regexp: '\$\{FLUXER_VAPID_EMAIL:-admin@\$\{FLUXER_DOMAIN\}\}'
replace: '${FLUXER_VAPID_EMAIL}'
- regexp: '\$\{FLUXER_PASSKEY_RP_ID:-\$\{FLUXER_DOMAIN\}\}'
replace: '${FLUXER_PASSKEY_RP_ID}'
- regexp: '\$\{FLUXER_PASSKEY_ADDITIONAL_ALLOWED_ORIGINS:-\$\{FLUXER_PUBLIC_SCHEME:-https\}://\$\{FLUXER_DOMAIN\}\}'
replace: '${FLUXER_PASSKEY_ADDITIONAL_ALLOWED_ORIGINS}'
when: not ansible_check_mode
notify:
- Restart the Fluxer stack