]> 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 16:19:30 +0000 (12:19 -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>
site-container.yml.sample
site.yml.sample

index c9f3be820ac9ffebd42345a3646cc79b0a3de127..bcecffa7ec2925b4cb221f9f9aa5df43b98af5fc 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 7ded9ab52f0968cb3dbb91936ba3836019f4591c..38b14c36d66b547365bf8834cf246530e6aa5a05 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