mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-06 10:59:59 +00:00
matomo_site_domain used a folded YAML scalar where the regex_replace backslashes are not unescaped, so base-domain extraction silently returned the input unchanged. In root tracking scope this registered one Matomo site per consumer subdomain instead of a single shared registrable-domain site, failing the SitesManager coverage spec. Use a double-quoted scalar (repo convention) so the regex sees an escaped dot. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
6 lines
417 B
YAML
6 lines
417 B
YAML
---
|
|
matomo_tracking_scope: "{{ lookup('config', 'web-app-matomo', 'services.matomo.tracking.scope') }}"
|
|
matomo_site_domain: "{{ domain if matomo_tracking_scope == 'sub' else (domain | regex_replace('^(?:.*\\.)?(.+\\..+)$', '\\1')) }}"
|
|
matomo_site_url: "{{ lookup('tls', application_id, 'protocols.web') }}://{{ matomo_site_domain }}"
|
|
matomo_index_php_url: "{{ lookup('tls', 'web-app-matomo', 'url.base') }}index.php"
|