]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
dashboard: allow configuring multiple grafana host
authorDimitri Savineau <dsavinea@redhat.com>
Mon, 27 Jan 2020 19:47:00 +0000 (14:47 -0500)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Thu, 13 Feb 2020 00:56:31 +0000 (19:56 -0500)
commite4e1b386b051764c2e4d2383a881d556733bba2c
tree41a5ea396e32b2a0bcc7e983abe7a89a2265627c
parent1d2a395aaf7378878736e409b6f60a7dbc4c3fa9
dashboard: allow configuring multiple grafana host

When using multiple grafana hosts then we push set the grafana and
prometheus URL and push the dashboard layout to a single node.

grafana_server_addrs is the list of all grafana nodes and used during
the ceph-dashboard role (on mgr/mon nodes).
grafana_server_addr is the current grafana node used during the
ceph-grafana and ceph-prometheus role (on grafana-server nodes).

We don't have the grafana_server_addr fact duplication code between
external vs collocated nodes.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1784011
Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit c6e96699f71c634b3028d819bdc29aedd8b64ce9)
roles/ceph-dashboard/tasks/configure_dashboard.yml
roles/ceph-dashboard/tasks/configure_grafana_layouts.yml [new file with mode: 0644]
roles/ceph-facts/tasks/grafana.yml