]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
validate: only check mon and rgw config if the node is in those groups
authorAndrew Schoen <aschoen@redhat.com>
Mon, 30 Apr 2018 17:59:07 +0000 (12:59 -0500)
committerGuillaume Abrioux <gabrioux@redhat.com>
Fri, 18 May 2018 15:58:24 +0000 (17:58 +0200)
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
plugins/actions/validate.py

index 814785230994e9fd5e00f4be819f16b23115c503..f60e35f08c1f234002a71f518b3d3effcb18e081 100644 (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