]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
ceph-osd: when ceph relase >= luminous add --filestore config 1676/head
authoryanyx <yanyx@umcloud.com>
Thu, 13 Jul 2017 13:41:20 +0000 (21:41 +0800)
committeryanyx <yanyx@umcloud.com>
Fri, 14 Jul 2017 01:53:59 +0000 (09:53 +0800)
roles/ceph-osd/tasks/scenarios/raw_multi_journal.yml

index 6f29ed58ee70182ac9aa7380ba9da2cd12e0f822..0e700aa6ffca0897e47fee13cee016dffd1eefaf 100644 (file)
@@ -7,8 +7,14 @@
 # if you have 64 disks with 4TB each, this will take a while
 # since Ansible will sequential process the loop
 
+- set_fact:
+    osd_type: "--filestore"
+  when: 
+    - ceph_release_num.{{ ceph_release }} >= ceph_release_num.luminous
+    - osd_objectstore == 'filestore'
+
 - name: prepare filestore osd disk(s) with a dedicated journal device
-  command: "ceph-disk prepare --cluster {{ cluster }} {{ item.1 }} {{ item.2 }}"
+  command: "ceph-disk prepare {{ osd_type | default('') }} --cluster {{ cluster }} {{ item.1 }} {{ item.2 }}"
   with_together:
     - "{{ parted_results.results }}"
     - "{{ devices }}"