mirror of https://github.com/ceph/ceph-ansible.git
Merge pull request #379 from andymcc/device_check_group
Check to ensure device checks only happen on osdspull/380/head
commit
792f839f07
|
@ -34,6 +34,7 @@
|
|||
fail: msg="please choose an osd scenario"
|
||||
when:
|
||||
osd_group_name is defined and
|
||||
osd_group_name in group_names and
|
||||
not journal_collocation and
|
||||
not raw_multi_journal and
|
||||
not osd_directory
|
||||
|
@ -42,6 +43,7 @@
|
|||
fail: msg="please select only one osd scenario"
|
||||
when:
|
||||
osd_group_name is defined and
|
||||
osd_group_name in group_names and
|
||||
((journal_collocation and raw_multi_journal) or
|
||||
(journal_collocation and osd_directory) or
|
||||
(raw_multi_journal and osd_directory))
|
||||
|
@ -50,6 +52,7 @@
|
|||
fail: msg="please provide devices to your osd scenario"
|
||||
when:
|
||||
osd_group_name is defined and
|
||||
osd_group_name in group_names and
|
||||
journal_collocation and
|
||||
devices is not defined
|
||||
|
||||
|
@ -57,6 +60,7 @@
|
|||
fail: msg="please provide devices to your osd scenario"
|
||||
when:
|
||||
osd_group_name is defined and
|
||||
osd_group_name in group_names and
|
||||
raw_multi_journal and
|
||||
(raw_journal_devices is not defined or
|
||||
devices is not defined)
|
||||
|
|
Loading…
Reference in New Issue