mirror of https://github.com/ceph/ceph-ansible.git
Check to ensure device checks only happen on osds
Add bool for osd_group_name in group_names for osd checks.pull/379/head
parent
967b9b51c0
commit
942f914b84
|
@ -34,6 +34,7 @@
|
||||||
fail: msg="please choose an osd scenario"
|
fail: msg="please choose an osd scenario"
|
||||||
when:
|
when:
|
||||||
osd_group_name is defined and
|
osd_group_name is defined and
|
||||||
|
osd_group_name in group_names and
|
||||||
not journal_collocation and
|
not journal_collocation and
|
||||||
not raw_multi_journal and
|
not raw_multi_journal and
|
||||||
not osd_directory
|
not osd_directory
|
||||||
|
@ -42,6 +43,7 @@
|
||||||
fail: msg="please select only one osd scenario"
|
fail: msg="please select only one osd scenario"
|
||||||
when:
|
when:
|
||||||
osd_group_name is defined and
|
osd_group_name is defined and
|
||||||
|
osd_group_name in group_names and
|
||||||
((journal_collocation and raw_multi_journal) or
|
((journal_collocation and raw_multi_journal) or
|
||||||
(journal_collocation and osd_directory) or
|
(journal_collocation and osd_directory) or
|
||||||
(raw_multi_journal and osd_directory))
|
(raw_multi_journal and osd_directory))
|
||||||
|
@ -50,6 +52,7 @@
|
||||||
fail: msg="please provide devices to your osd scenario"
|
fail: msg="please provide devices to your osd scenario"
|
||||||
when:
|
when:
|
||||||
osd_group_name is defined and
|
osd_group_name is defined and
|
||||||
|
osd_group_name in group_names and
|
||||||
journal_collocation and
|
journal_collocation and
|
||||||
devices is not defined
|
devices is not defined
|
||||||
|
|
||||||
|
@ -57,6 +60,7 @@
|
||||||
fail: msg="please provide devices to your osd scenario"
|
fail: msg="please provide devices to your osd scenario"
|
||||||
when:
|
when:
|
||||||
osd_group_name is defined and
|
osd_group_name is defined and
|
||||||
|
osd_group_name in group_names and
|
||||||
raw_multi_journal and
|
raw_multi_journal and
|
||||||
(raw_journal_devices is not defined or
|
(raw_journal_devices is not defined or
|
||||||
devices is not defined)
|
devices is not defined)
|
||||||
|
|
Loading…
Reference in New Issue