mirror of https://github.com/ceph/ceph-ansible.git
validate: do not validate lvm config if osd_auto_discovery is true
If osd_auto_discovery is set with the lvm scenario it's expected for lvm_volumes and devices to be empty. Signed-off-by: Andrew Schoen <aschoen@redhat.com>pull/3564/head
parent
46db5a1e38
commit
c5b082848f
|
@ -90,6 +90,7 @@ class ActionModule(ActionBase):
|
||||||
notario.validate(host_vars, non_collocated_osd_scenario, defined_keys=True)
|
notario.validate(host_vars, non_collocated_osd_scenario, defined_keys=True)
|
||||||
|
|
||||||
if host_vars["osd_scenario"] == "lvm":
|
if host_vars["osd_scenario"] == "lvm":
|
||||||
|
if not host_vars.get("osd_auto_discovery", False):
|
||||||
if host_vars.get("devices"):
|
if host_vars.get("devices"):
|
||||||
notario.validate(host_vars, lvm_batch_scenario, defined_keys=True)
|
notario.validate(host_vars, lvm_batch_scenario, defined_keys=True)
|
||||||
elif notario_store['osd_objectstore'] == 'filestore':
|
elif notario_store['osd_objectstore'] == 'filestore':
|
||||||
|
|
Loading…
Reference in New Issue