]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Add condition on dashboard installer phase
authorDimitri Savineau <dsavinea@redhat.com>
Fri, 28 Jun 2019 18:14:53 +0000 (14:14 -0400)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Tue, 2 Jul 2019 10:50:14 +0000 (10:50 +0000)
Even if dashboard feature is disabled then the installer status will
still report dashboard, grafana and node-exporter roles timing.

INSTALLER STATUS **********************************
Install Ceph Monitor           : Complete (0:01:21)
Install Ceph Manager           : Complete (0:00:49)
Install Ceph Dashboard         : Complete (0:00:00)
Install Ceph Grafana           : Complete (0:00:02)

When need to set the dashboard_enabled condition on those installer
phase pre/post tasks.

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit 0604275c112503279e173303418a4daa28ca3478)

site-container.yml.sample
site.yml.sample

index 2ca39f6ca2c23172b50e8bd702a80d7f77c2506c..d38c5c9707e07e55889f4f414daff5d46212daf0 100644 (file)
           installer_phase_ceph_grafana:
             status: "In Progress"
             start: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
+      when: dashboard_enabled | bool
 
   tasks:
     - block:
           installer_phase_ceph_grafana:
             status: "Complete"
             end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
+      when: dashboard_enabled | bool
 
 - hosts: '{{ groups["mgrs"][0] | default(groups["mons"][0]) | default(omit) }}'
   become: true
           installer_phase_ceph_dashboard:
             status: "In Progress"
             start: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
+      when: dashboard_enabled | bool
 
   tasks:
     - block:
           installer_phase_ceph_dashboard:
             status: "Complete"
             end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
+      when: dashboard_enabled | bool
index da208e3fe5e5d01ab313839ac9fa8d7354a911f9..3ca4f1f60540295802a7446c5ae6813fff192c2a 100644 (file)
           installer_phase_ceph_node_exporter:
             status: "In Progress"
             start: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
+      when: dashboard_enabled | bool
 
   tasks:
     - block:
           installer_phase_ceph_node_exporter:
             status: "Complete"
             end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
+      when: dashboard_enabled | bool
 
 - hosts: '{{ groups["grafana-server"][0] | default(groups["mgrs"][0]) | default(groups["mons"][0]) | default(omit) }}'
   become: true
           installer_phase_ceph_grafana:
             status: "In Progress"
             start: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
+      when: dashboard_enabled | bool
 
   tasks:
     - block:
           installer_phase_ceph_grafana:
             status: "Complete"
             end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
+      when: dashboard_enabled | bool
 
 - hosts: '{{ groups["mgrs"][0] | default(groups["mons"][0]) | default(omit) }}'
   become: true
           installer_phase_ceph_dashboard:
             status: "In Progress"
             start: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
+      when: dashboard_enabled | bool
 
   tasks:
     - block:
           installer_phase_ceph_dashboard:
             status: "Complete"
             end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
+      when: dashboard_enabled | bool