From 4e87c1f0f503c29fef734cf486047e9813dd96cf Mon Sep 17 00:00:00 2001 From: Andrew Schoen Date: Thu, 6 Jul 2017 13:59:17 -0500 Subject: [PATCH] ceph-common: make sure monitor_interface or monitor_address is defined Signed-off-by: Andrew Schoen --- roles/ceph-common/tasks/checks/check_mandatory_vars.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/roles/ceph-common/tasks/checks/check_mandatory_vars.yml b/roles/ceph-common/tasks/checks/check_mandatory_vars.yml index 9565383b4..c202d4404 100644 --- a/roles/ceph-common/tasks/checks/check_mandatory_vars.yml +++ b/roles/ceph-common/tasks/checks/check_mandatory_vars.yml @@ -33,8 +33,10 @@ 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