]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
dashboard: fix hosts sections in main playbook
authorGuillaume Abrioux <gabrioux@redhat.com>
Fri, 14 Jun 2019 13:27:11 +0000 (15:27 +0200)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Mon, 17 Jun 2019 19:54:54 +0000 (15:54 -0400)
ceph-dashboard should be deployed on either a dedicated mgr node or a
mon if they are collocated.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit bdc870cbf5771f2f56ec4b0d64eb702b23f9969a)

site-container.yml.sample
site.yml.sample

index 70f3390952a583cce73357135742cd54b9198fb3..27cbdafa856e2b7398791c3ed9ec074b5aea6ff8 100644 (file)
   become: true
   tasks:
     - block:
-      - import_role:
-          name: ceph-defaults
-        tags: ['ceph_update_config']
-      - import_role:
-          name: ceph-facts
-        tags: ['ceph_update_config']
-      - import_role:
-          name: ceph-handler
-      - import_role:
-          name: ceph-container-engine
-      - import_role:
-          name: ceph-container-common
-      - import_role:
-          name: ceph-node-exporter
-      - import_role:
-          name: ceph-config
-        tags: ['ceph_update_config']
-      - import_role:
-          name: ceph-prometheus
-      - import_role:
-          name: ceph-grafana
+        - import_role:
+            name: ceph-defaults
+          tags: ['ceph_update_config']
+        - import_role:
+            name: ceph-facts
+          tags: ['ceph_update_config']
+        - import_role:
+            name: ceph-handler
+        - import_role:
+            name: ceph-container-engine
+        - import_role:
+            name: ceph-container-common
+        - import_role:
+            name: ceph-node-exporter
+        - import_role:
+            name: ceph-config
+          tags: ['ceph_update_config']
+        - import_role:
+            name: ceph-prometheus
+        - import_role:
+            name: ceph-grafana
       when: dashboard_enabled | bool
 
-- hosts: '{{ groups["grafana-server"][0] | default(groups["mgrs"][0]) | default(groups["mons"][0]) | default(omit) }}'
+- hosts: '{{ groups["mgrs"][0] | default(groups["mons"][0]) | default(omit) }}'
   become: true
   tasks:
     - block:
index 9fde7693f0b9b070ec738258026e4b46f7d50655..643da98dbad7b14c1362c5ccb8efa929fcb8cc92 100644 (file)
             name: ceph-grafana
       when: dashboard_enabled | bool
 
-- hosts: '{{ groups["grafana-server"][0] | default(groups["mgrs"][0]) | default(groups["mons"][0]) | default(omit) }}'
+- hosts: '{{ groups["mgrs"][0] | default(groups["mons"][0]) | default(omit) }}'
   become: true
   tasks:
-    - import_role:
-        name: ceph-defaults
-      tags: ['ceph_update_config']
-      when: dashboard_enabled | bool
-    - import_role:
-        name: ceph-dashboard
+    - block:
+        - import_role:
+            name: ceph-defaults
+          tags: ['ceph_update_config']
+        - import_role:
+            name: ceph-dashboard
       when: dashboard_enabled | bool