]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Verify only one osd scenario 360/head
authorMichael Sambol <sambol.michael@gmail.com>
Sat, 1 Aug 2015 03:02:05 +0000 (22:02 -0500)
committerMichael Sambol <sambol.michael@gmail.com>
Sat, 1 Aug 2015 03:02:05 +0000 (22:02 -0500)
roles/ceph-common/tasks/checks/check_mandatory_vars.yml

index 100e8c2c808edb65524ebaf15a8fa3f69ed524ef..2130cb3f1551ebd0021f11c389c19978b7f7d8ee 100644 (file)
     not raw_multi_journal and
     not osd_directory
 
+- name: verify only one osd scenario was chosen
+  fail: msg="please select only one osd scenario"
+  when:
+    osd_group_name is defined and
+    ((journal_collocation and raw_multi_journal) or
+    (journal_collocation and osd_directory) or
+    (raw_multi_journal and osd_directory))
+
 - name: verify devices have been provided
   fail: msg="please provide devices to your osd scenario"
   when: