validate: only check mon and rgw config if the node is in those groups

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
pull/2619/head
Andrew Schoen 2018-04-30 12:59:07 -05:00 committed by Guillaume Abrioux
parent b2b905f47e
commit 4325ccc857
1 changed files with 3 additions and 2 deletions

View File

@ -50,13 +50,14 @@ class ActionModule(ActionBase):
notario_store["monitor_address_block"] = host_vars.get("monitor_address_block", None)
notario_store["monitor_interface"] = host_vars.get("monitor_interface", None)
notario.validate(host_vars, monitor_options, defined_keys=True)
if host_vars["mon_group_name"] in host_vars["group_names"]:
notario.validate(host_vars, monitor_options, defined_keys=True)
notario_store["radosgw_address"] = host_vars.get("radosgw_address", None)
notario_store["radosgw_address_block"] = host_vars.get("radosgw_address_block", None)
notario_store["radosgw_interface"] = host_vars.get("radosgw_interface", None)
if host_vars["rgw_group_name"] in host_vars["groups"]:
if host_vars["rgw_group_name"] in host_vars["group_names"]:
notario.validate(host_vars, rados_options, defined_keys=True)
# validate osd scenario setup