]> 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>
Thu, 5 Dec 2019 18:02:06 +0000 (13:02 -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>
infrastructure-playbooks/rolling_update.yml

index 645c0405257b80b4134ef43a10f3a9a90b96c6f6..65e177ce8c9074f85bce62e031bc0b2056ea4f13 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') }}"