]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
dashboard: append mgr modules to ceph_mgr_modules
authorGuillaume Abrioux <gabrioux@redhat.com>
Wed, 22 May 2019 14:12:16 +0000 (16:12 +0200)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Wed, 26 Jun 2019 16:03:21 +0000 (12:03 -0400)
when `dashboard_enabled` is `True`, let's append `dashboard` and
`prometheus` modules to `ceph_mgr_modules` so they are automatically
loaded.

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

roles/ceph-mgr/tasks/mgr_modules.yml

index 2e6eac9c5cf14323c6bb8f588231188e7f894460..320e854673cd894ef16befaada52d49212317b49 100644 (file)
@@ -1,4 +1,9 @@
 ---
+- name: append dashboard modules to ceph_mgr_modules
+  set_fact:
+    ceph_mgr_modules: "{{ (ceph_mgr_modules + [ 'dashboard', 'prometheus' ]) | unique }}"
+  when: dashboard_enabled | bool
+
 - name: wait for all mgr to be up
   shell: "{{ container_exec_cmd | default('') }} ceph --cluster {{ cluster }} mgr dump -f json | python -c 'import sys, json; print(json.load(sys.stdin)[\"available\"])'"
   register: mgr_dump