mirror of https://github.com/ceph/ceph-ansible.git
ceph-crash: add install checkpoint
The ceph crash insatll checkpoint callback was missing in the main playbooks. Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>pull/6673/head
parent
3b804a61dd
commit
993d06c4d9
|
@ -34,6 +34,7 @@ class CallbackModule(CallbackBase):
|
||||||
'installer_phase_ceph_dashboard',
|
'installer_phase_ceph_dashboard',
|
||||||
'installer_phase_ceph_grafana',
|
'installer_phase_ceph_grafana',
|
||||||
'installer_phase_ceph_node_exporter',
|
'installer_phase_ceph_node_exporter',
|
||||||
|
'installer_phase_ceph_crash',
|
||||||
]
|
]
|
||||||
|
|
||||||
# Define the attributes of the installer phases
|
# Define the attributes of the installer phases
|
||||||
|
@ -90,6 +91,10 @@ class CallbackModule(CallbackBase):
|
||||||
'title': 'Install Ceph Node Exporter',
|
'title': 'Install Ceph Node Exporter',
|
||||||
'playbook': 'roles/ceph-node-exporter/tasks/main.yml'
|
'playbook': 'roles/ceph-node-exporter/tasks/main.yml'
|
||||||
},
|
},
|
||||||
|
'installer_phase_ceph_crash': {
|
||||||
|
'title': 'Install Ceph Crash',
|
||||||
|
'playbook': 'roles/ceph-crash/tasks/main.yml'
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
# Find the longest phase title
|
# Find the longest phase title
|
||||||
|
|
|
@ -450,6 +450,14 @@
|
||||||
gather_facts: false
|
gather_facts: false
|
||||||
become: True
|
become: True
|
||||||
any_errors_fatal: true
|
any_errors_fatal: true
|
||||||
|
pre_tasks:
|
||||||
|
- name: set ceph crash install 'In Progress'
|
||||||
|
run_once: true
|
||||||
|
set_stats:
|
||||||
|
data:
|
||||||
|
installer_phase_ceph_crash:
|
||||||
|
status: "In Progress"
|
||||||
|
start: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- import_role:
|
- import_role:
|
||||||
|
@ -462,6 +470,14 @@
|
||||||
- import_role:
|
- import_role:
|
||||||
name: ceph-crash
|
name: ceph-crash
|
||||||
|
|
||||||
|
post_tasks:
|
||||||
|
- name: set ceph crash install 'Complete'
|
||||||
|
run_once: true
|
||||||
|
set_stats:
|
||||||
|
data:
|
||||||
|
installer_phase_ceph_crash:
|
||||||
|
status: "Complete"
|
||||||
|
end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
|
||||||
|
|
||||||
- hosts: mons
|
- hosts: mons
|
||||||
gather_facts: false
|
gather_facts: false
|
||||||
|
|
|
@ -473,6 +473,14 @@
|
||||||
gather_facts: false
|
gather_facts: false
|
||||||
become: True
|
become: True
|
||||||
any_errors_fatal: true
|
any_errors_fatal: true
|
||||||
|
pre_tasks:
|
||||||
|
- name: set ceph crash install 'In Progress'
|
||||||
|
run_once: true
|
||||||
|
set_stats:
|
||||||
|
data:
|
||||||
|
installer_phase_ceph_crash:
|
||||||
|
status: "In Progress"
|
||||||
|
start: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- import_role:
|
- import_role:
|
||||||
|
@ -485,6 +493,15 @@
|
||||||
- import_role:
|
- import_role:
|
||||||
name: ceph-crash
|
name: ceph-crash
|
||||||
|
|
||||||
|
post_tasks:
|
||||||
|
- name: set ceph crash install 'Complete'
|
||||||
|
run_once: true
|
||||||
|
set_stats:
|
||||||
|
data:
|
||||||
|
installer_phase_ceph_crash:
|
||||||
|
status: "Complete"
|
||||||
|
end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
|
||||||
|
|
||||||
- hosts: mons
|
- hosts: mons
|
||||||
gather_facts: false
|
gather_facts: false
|
||||||
become: True
|
become: True
|
||||||
|
|
Loading…
Reference in New Issue