'installer_phase_ceph_client',
'installer_phase_ceph_iscsi_gw',
'installer_phase_ceph_rgw_loadbalancer',
+ 'installer_phase_ceph_dashboard',
+ 'installer_phase_ceph_grafana',
+ 'installer_phase_ceph_node_exporter',
]
# Define the attributes of the installer phases
'title': 'Install Ceph RGW LoadBalancer',
'playbook': 'roles/ceph-rgw-loadbalancer/tasks/main.yml'
},
+ 'installer_phase_ceph_dashboard': {
+ 'title': 'Install Ceph Dashboard',
+ 'playbook': 'roles/ceph-dashboard/tasks/main.yml'
+ },
+ 'installer_phase_ceph_grafana': {
+ 'title': 'Install Ceph Grafana',
+ 'playbook': 'roles/ceph-grafana/tasks/main.yml'
+ },
+ 'installer_phase_ceph_node_exporter': {
+ 'title': 'Install Ceph Node Exporter',
+ 'playbook': 'roles/ceph-node-exporter/tasks/main.yml'
+ },
}
# Find the longest phase title
- hosts: '{{ groups["grafana-server"][0] | default(groups["mgrs"][0]) | default(groups["mons"][0]) | default(omit) }}'
become: true
+ pre_tasks:
+ - name: set ceph grafana install 'In Progress'
+ run_once: true
+ set_stats:
+ data:
+ installer_phase_ceph_grafana:
+ status: "In Progress"
+ start: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
+
tasks:
- block:
- import_role:
name: ceph-grafana
when: dashboard_enabled | bool
+ post_tasks:
+ - name: set ceph grafana install 'Complete'
+ run_once: true
+ set_stats:
+ data:
+ installer_phase_ceph_grafana:
+ status: "Complete"
+ end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
+
- hosts: '{{ groups["mgrs"][0] | default(groups["mons"][0]) | default(omit) }}'
become: true
+ pre_tasks:
+ - name: set ceph dashboard install 'In Progress'
+ run_once: true
+ set_stats:
+ data:
+ installer_phase_ceph_dashboard:
+ status: "In Progress"
+ start: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
+
tasks:
- block:
- import_role:
- import_role:
name: ceph-dashboard
when: dashboard_enabled | bool
+
+ post_tasks:
+ - name: set ceph dashboard install 'Complete'
+ run_once: true
+ set_stats:
+ data:
+ installer_phase_ceph_dashboard:
+ status: "Complete"
+ end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
- hosts: all
become: true
+ pre_tasks:
+ - name: set ceph node exporter install 'In Progress'
+ run_once: true
+ set_stats:
+ data:
+ installer_phase_ceph_node_exporter:
+ status: "In Progress"
+ start: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
+
tasks:
- block:
- import_role:
name: ceph-node-exporter
when: dashboard_enabled | bool
+ post_tasks:
+ - name: set ceph node exporter install 'Complete'
+ run_once: true
+ set_stats:
+ data:
+ installer_phase_ceph_node_exporter:
+ status: "Complete"
+ end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
+
- hosts: '{{ groups["grafana-server"][0] | default(groups["mgrs"][0]) | default(groups["mons"][0]) | default(omit) }}'
become: true
+ pre_tasks:
+ - name: set ceph grafana install 'In Progress'
+ run_once: true
+ set_stats:
+ data:
+ installer_phase_ceph_grafana:
+ status: "In Progress"
+ start: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
+
tasks:
- block:
- import_role:
name: ceph-grafana
when: dashboard_enabled | bool
+ post_tasks:
+ - name: set ceph grafana install 'Complete'
+ run_once: true
+ set_stats:
+ data:
+ installer_phase_ceph_grafana:
+ status: "Complete"
+ end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
+
- hosts: '{{ groups["mgrs"][0] | default(groups["mons"][0]) | default(omit) }}'
become: true
+ pre_tasks:
+ - name: set ceph dashboard install 'In Progress'
+ run_once: true
+ set_stats:
+ data:
+ installer_phase_ceph_dashboard:
+ status: "In Progress"
+ start: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
+
tasks:
- block:
- import_role:
- import_role:
name: ceph-dashboard
when: dashboard_enabled | bool
+
+ post_tasks:
+ - name: set ceph dashboard install 'Complete'
+ run_once: true
+ set_stats:
+ data:
+ installer_phase_ceph_dashboard:
+ status: "Complete"
+ end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"