]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
upgrade: add dashboard deployment
authorGuillaume Abrioux <gabrioux@redhat.com>
Wed, 4 Dec 2019 16:17:36 +0000 (17:17 +0100)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Wed, 11 Dec 2019 13:48:34 +0000 (08:48 -0500)
when upgrading from RHCS 3, dashboard has obviously never been deployed
and it forces us to deploy it later manually.
This commit adds the dashboard deployment as part of the upgrade to
RHCS 4.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1779092
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 451c5ca93499fc0520b60729a170f0aa6f6132db)

infrastructure-playbooks/rolling_update.yml

index 5c0c610449ce9f5d4ce2bca86d97add5d8554256..a1ad48530c94096cc605f1e2bdb174c797c5b88b 100644 (file)
@@ -49,6 +49,7 @@
     - "{{ nfs_group_name|default('nfss') }}"
     - "{{ client_group_name|default('clients') }}"
     - "{{ iscsi_gw_group_name|default('iscsigws') }}"
+    - "{{ grafana_server_group_name|default('grafana-server') }}"
 
   become: True
   gather_facts: False
       run_once: true
       when: delegate_facts_host | bool
 
+    - import_role:
+        name: ceph-facts
+
+    - import_role:
+        name: ceph-infra
+
+    - import_role:
+        name: ceph-validate
+
     - set_fact: rolling_update=true
 
 - name: upgrade ceph mon cluster
       vars:
         msgr2_migration: True
 
+- import_playbook: ../dashboard.yml
+  when:
+    - dashboard_enabled | bool
+    - groups.get(grafana_server_group_name, []) | length > 0
 
 - name: show ceph status
   hosts: "{{ mon_group_name|default('mons') }}"