Add zap journal devices for raw multi journal scenario

Signed-off-by: KGoreczny <krzysztof.goreczny@intel.com>
pull/576/head
KGoreczny 2016-02-29 13:19:56 +01:00
parent b406e73019
commit b4f29f1869
1 changed files with 11 additions and 0 deletions

View File

@ -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 }}"