From 43ffcd7d2820d24971aac0982bd5482ded6f3f19 Mon Sep 17 00:00:00 2001 From: Dimitri Savineau Date: Mon, 16 Dec 2019 10:48:26 -0500 Subject: [PATCH] ceph-infra: open dashboard port on monitor When there's no mgr group defined in the ansible inventory then the mgrs are deployed implicitly on the mons nodes. If the dashboard is enabled then we need to open the dashboard port on the node that is running the ceph mgr process (mgr or mon). The current code only allow to open that port on the mgr nodes when they are present explicitly in the inventory but not implicitly. Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1783520 Signed-off-by: Dimitri Savineau (cherry picked from commit 4535985188dcc656ff4da60318dc07b44eabf3a6) --- roles/ceph-infra/tasks/configure_firewall.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/ceph-infra/tasks/configure_firewall.yml b/roles/ceph-infra/tasks/configure_firewall.yml index 92778098a..6b021986d 100644 --- a/roles/ceph-infra/tasks/configure_firewall.yml +++ b/roles/ceph-infra/tasks/configure_firewall.yml @@ -201,7 +201,8 @@ when: - dashboard_enabled | bool - mgr_group_name is defined - - mgr_group_name in group_names + - (groups.get(mgr_group_name,[]) | length > 0 and mgr_group_name in group_names) or + (groups.get(mgr_group_name,[]) | length == 0 and mon_group_name in group_names) - block: - name: open grafana port -- 2.39.5