Switch from grafana_container_additional_networks to grafana_container_additional_networks_auto

This commit is contained in:
Slavi Pantaleev 2024-01-30 21:09:33 +02:00
parent a91f14ee0d
commit 674658039e

View File

@ -4381,10 +4381,10 @@ grafana_base_path: "{{ matrix_base_data_path }}/grafana"
grafana_container_network: "{{ matrix_monitoring_container_network }}"
grafana_container_additional_networks: |
grafana_container_additional_networks_auto: |
{{
(
([matrix_playbook_reverse_proxyable_services_additional_network] if matrix_playbook_reverse_proxyable_services_additional_network else [])
([matrix_playbook_reverse_proxyable_services_additional_network] if matrix_playbook_reverse_proxyable_services_additional_network and grafana_container_labels_traefik_enabled else [])
+
([prometheus_container_network] if prometheus_enabled and prometheus_container_network != grafana_container_network else [])
) | unique