Skip to content

Commit

Permalink
ceph-infra: open dashboard port on monitor
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
dsavineau authored and guits committed Dec 18, 2019
1 parent b46839b commit 4535985
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion roles/ceph-infra/tasks/configure_firewall.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4535985

Please sign in to comment.