]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commit
Use grafana_server_addr to set prometheus networks list rhcs-5.3 v6.0.28.20
authorJohn Fulton <fulton@redhat.com>
Thu, 6 Feb 2025 00:01:08 +0000 (19:01 -0500)
committerTeoman ONAY <tonay@ibm.com>
Thu, 6 Feb 2025 15:17:38 +0000 (16:17 +0100)
commit61156b8fd8e9c49727306e6598dc1f547414341a
tree284dc56965d555b1132ea586bc52c7c51303dcf4
parente1dbe82f0f3d6b4ead3f0827ebc467cac50cd917
Use grafana_server_addr to set prometheus networks list

When dashboard is enabled and module ceph_orch_apply is
called, if the grafana_server_addr is defined, then it
is used to populate the networks list in the spec of type
alertmanager. This is the case without this patch. With
this patch the same logic is applied to the spec of type
prometheus. Also, if the grafana_server_addr is a comma
delimited list, then a jinja2 expression handles passing
the IPs as a list.

Without this patch prometheus binds to all networks even
if grafana_server_addr is set which can create conflicts
with other services.

Fixes: https://bugzilla.redhat.com/2269009
Signed-off-by: John Fulton <fulton@redhat.com>
infrastructure-playbooks/cephadm-adopt.yml