mirror of https://github.com/ceph/ceph-ansible.git
dashboard: configure mgr backend before restart
We need to set the mgr dashboard server ip address before restarting the
dashboard module otherwise we can try to bind the dashboard module on an
already used address.
We already do this configuration for the dashboard port value and ssl
setup so we should do the same for server address too.
Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1851455
Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit 03cd75845f
)
pull/5580/head
parent
3e4c2e33e6
commit
88e4dcdd8f
|
@ -92,6 +92,11 @@
|
||||||
changed_when: false
|
changed_when: false
|
||||||
failed_when: false # Do not fail if the option does not exist, it only exists post-14.2.0
|
failed_when: false # Do not fail if the option does not exist, it only exists post-14.2.0
|
||||||
|
|
||||||
|
- include_tasks: configure_dashboard_backends.yml
|
||||||
|
with_items: '{{ groups[mgr_group_name] | default(groups[mon_group_name]) }}'
|
||||||
|
vars:
|
||||||
|
dashboard_backend: '{{ item }}'
|
||||||
|
|
||||||
- name: disable mgr dashboard module (restart)
|
- name: disable mgr dashboard module (restart)
|
||||||
command: "{{ container_exec_cmd }} ceph --cluster {{ cluster }} mgr module disable dashboard"
|
command: "{{ container_exec_cmd }} ceph --cluster {{ cluster }} mgr module disable dashboard"
|
||||||
delegate_to: "{{ groups[mon_group_name][0] }}"
|
delegate_to: "{{ groups[mon_group_name][0] }}"
|
||||||
|
@ -165,11 +170,6 @@
|
||||||
changed_when: false
|
changed_when: false
|
||||||
when: dashboard_frontend_vip is defined and dashboard_frontend_vip |length > 0
|
when: dashboard_frontend_vip is defined and dashboard_frontend_vip |length > 0
|
||||||
|
|
||||||
- include_tasks: configure_dashboard_backends.yml
|
|
||||||
with_items: '{{ groups[mgr_group_name] | default(groups[mon_group_name]) }}'
|
|
||||||
vars:
|
|
||||||
dashboard_backend: '{{ item }}'
|
|
||||||
|
|
||||||
- name: dashboard object gateway management frontend
|
- name: dashboard object gateway management frontend
|
||||||
when: groups.get(rgw_group_name, []) | length > 0
|
when: groups.get(rgw_group_name, []) | length > 0
|
||||||
block:
|
block:
|
||||||
|
|
Loading…
Reference in New Issue