]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
dashboard: move ceph-grafana-dashboards package installation
authorGuillaume Abrioux <gabrioux@redhat.com>
Thu, 23 May 2019 08:26:36 +0000 (10:26 +0200)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Wed, 26 Jun 2019 16:03:21 +0000 (12:03 -0400)
This commit moves the package installation into ceph-dashboard role.
This is needed to install ceph dasboard json file in
`/etc/grafana/dashboards/ceph-dashboard/`.

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

roles/ceph-grafana/tasks/configure_grafana.yml
roles/ceph-mgr/tasks/pre_requisite.yml

index e45a7c74ebae0958bd852988a6500cc827593a40..7aa444ab71d00700472a661202866a20e77c6137 100644 (file)
@@ -1,4 +1,14 @@
 ---
+- name: install ceph-grafana-dashboards package on RedHat or SUSE
+  package:
+    name: ceph-grafana-dashboards
+    state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
+  register: result
+  until: result is succeeded
+  when:
+    - not containerized_deployment
+    - ansible_os_family in ['RedHat', 'Suse']
+
 - name: make sure grafana is down
   service:
     name: grafana-server
index 12051ae6434fb7e0e19e089d6b3b4b433fcf0e72..f2cd100a1c4374f76b7c6d1bc6b422489d0bb7a0 100644 (file)
@@ -7,15 +7,6 @@
   until: result is succeeded
   when: ansible_os_family in ['RedHat', 'Suse']
 
-- name: install ceph-grafana-dashboards package on RedHat or SUSE
-  package:
-    name: ceph-grafana-dashboards
-    state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
-  register: result
-  until: result is succeeded
-  when:
-    - ansible_os_family in ['RedHat', 'Suse']
-
 - name: install ceph-mgr packages for debian
   apt:
     name: '{{ ceph_mgr_packages }}'