mirror of https://github.com/ceph/ceph-ansible.git
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 <dsavinea@redhat.com>pull/4877/head
parent
b46839bad0
commit
4535985188
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue