]> 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)
committerGuillaume Abrioux <gabrioux@redhat.com>
Mon, 3 Jun 2019 11:36:38 +0000 (13:36 +0200)
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>
roles/ceph-grafana/tasks/configure_grafana.yml
roles/ceph-mgr/tasks/pre_requisite.yml

index bbb5ab224933c4acade91b54eef582a17d2b5fcb..d6d63b04a32014df0ea56c65c446cd909ecbf101 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 }}'