mirror of https://github.com/ceph/ceph-ansible.git
Add zap journal devices for raw multi journal scenario
Signed-off-by: KGoreczny <krzysztof.goreczny@intel.com>pull/576/head
parent
b406e73019
commit
b4f29f1869
|
@ -14,6 +14,9 @@
|
|||
# This can cause problem with qemu-kvm
|
||||
purge_all_packages: true
|
||||
|
||||
# When set to true and raw _multi_journal is used then journal disk are also zapped
|
||||
zap_journal_disks: true
|
||||
|
||||
ceph_packages:
|
||||
- ceph
|
||||
- ceph-common
|
||||
|
@ -147,6 +150,14 @@
|
|||
when:
|
||||
osd_group_name in group_names
|
||||
|
||||
- name: zap journal devices
|
||||
shell: ceph-disk zap "{{ item }}"
|
||||
with_items: "{{ raw_journal_devices|default([])|unique }}"
|
||||
when:
|
||||
osd_group_name in group_names and
|
||||
raw_multi_journal and
|
||||
zap_journal_disks
|
||||
|
||||
- name: purge ceph packages with yum
|
||||
yum:
|
||||
name: "{{ item }}"
|
||||
|
|
Loading…
Reference in New Issue