]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
ceph-common: make sure monitor_interface or monitor_address is defined 1666/head
authorAndrew Schoen <aschoen@redhat.com>
Thu, 6 Jul 2017 18:59:17 +0000 (13:59 -0500)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 12 Jul 2017 14:34:41 +0000 (16:34 +0200)
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
roles/ceph-common/tasks/checks/check_mandatory_vars.yml

index 9565383b4ddb902f90ba4a9fc01de36662e2e086..c202d4404260bad7f4235c05eb80951128b0da31 100644 (file)
   tags:
     - package-install
 
-- name: make sure monitor_interface is defined
+- name: make sure monitor_interface or monitor_address is defined
   fail:
-    msg: "you must set monitor_interface"
+    msg: "you must set monitor_interface or monitor_address"
   when:
     - monitor_interface == 'interface'
+    - monitor_address == "0.0.0.0"
+    - mon_group_name in group_names