]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
dashboard: run dashboard role on mgr/mon nodes
authorDimitri Savineau <dsavinea@redhat.com>
Fri, 2 Aug 2019 15:24:03 +0000 (11:24 -0400)
committerGuillaume Abrioux <gabrioux@redhat.com>
Thu, 8 Aug 2019 11:47:09 +0000 (13:47 +0200)
We don't need to execute the ceph-dashboard role on the nodes present
in the grafana-server group. This one is dedicated to the grafana and
prometheus stack.
The ceph-dashboard needs to executed where the ceph-mgr is running. It
is either on the dedicated mgr nodes or if mgr and mon are collocated
implicitly on the mon nodes.

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit 16939eff9efc680aebaafa12f2a25a804400b5e9)

infrastructure-playbooks/dashboard.yml

index dd6c48d6c7a402f5ef50218f929baf318962ee7e..1ad10a856a8dd3678774073847ece34b42455f5a 100644 (file)
@@ -67,7 +67,7 @@
             status: "Complete"
             end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
 
-- hosts: "{{ grafana_server_group_name }}"
+- hosts: "{{ groups[mgr_group_name] | default(groups[mon_group_name]) }}"
   become: true
   pre_tasks:
     - name: set ceph dashboard install 'In Progress'