]> 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>
Mon, 10 Feb 2020 16:18:45 +0000 (11:18 -0500)
commitc6e96699f71c634b3028d819bdc29aedd8b64ce9
tree644cb5d726fb728b366ba9d6df80db3bd1f50450
parent3700aa5385a986460f49370b9bfcb762c414d54d
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>
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