diff --git a/ansible/group_vars/all.yml b/ansible/group_vars/all.yml index ce678fd916fa86581c364a55a350a895dbd12c53..b6994fc045beb0f58ad655c283a226bca8e6704d 100644 --- a/ansible/group_vars/all.yml +++ b/ansible/group_vars/all.yml @@ -412,6 +412,7 @@ enable_ceph: "no" enable_ceph_mds: "no" enable_ceph_rgw: "no" enable_ceph_nfs: "no" +enable_ceph_dashboard: "{{ enable_ceph | bool }}" enable_chrony: "no" enable_cinder: "no" enable_cinder_backup: "yes" diff --git a/ansible/roles/ceph/tasks/deploy.yml b/ansible/roles/ceph/tasks/deploy.yml index 286ca26f5c54c465a704775e61153550c22de828..de8f8e3e614240207012942c3a0aedba914dd5c1 100644 --- a/ansible/roles/ceph/tasks/deploy.yml +++ b/ansible/roles/ceph/tasks/deploy.yml @@ -12,6 +12,11 @@ - include: start_mgrs.yml when: inventory_hostname in groups['ceph-mgr'] +- include: start_ceph_dashboard.yml + when: + - enable_ceph_dashboard | bool + - inventory_hostname in groups['ceph-mon'] + - include: start_nfss.yml when: - enable_ceph_nfs | bool diff --git a/ansible/roles/ceph/tasks/start_ceph_dashboard.yml b/ansible/roles/ceph/tasks/start_ceph_dashboard.yml new file mode 100644 index 0000000000000000000000000000000000000000..19885d98befe1d3437cb0b4a12b011d22717d939 --- /dev/null +++ b/ansible/roles/ceph/tasks/start_ceph_dashboard.yml @@ -0,0 +1,5 @@ +--- +- name: Enable ceph dashboard + command: docker exec ceph_mon ceph mgr module enable dashboard + changed_when: false + run_once: true diff --git a/etc/kolla/globals.yml b/etc/kolla/globals.yml index ff2ee131adab8b0b7642b82a157251a1dfc65993..eff4104acbb47c6c0855ab19ff5cd7474d323391 100644 --- a/etc/kolla/globals.yml +++ b/etc/kolla/globals.yml @@ -150,6 +150,7 @@ kolla_internal_vip_address: "10.10.10.254" #enable_ceph_mds: "no" #enable_ceph_rgw: "no" #enable_ceph_nfs: "no" +#enable_ceph_dashboard: "{{ enable_ceph | bool }}" #enable_chrony: "no" #enable_cinder: "no" #enable_cinder_backup: "yes" diff --git a/releasenotes/notes/support-ceph-dashboard-3ee5e489ea16ea25.yaml b/releasenotes/notes/support-ceph-dashboard-3ee5e489ea16ea25.yaml new file mode 100644 index 0000000000000000000000000000000000000000..7a3aea63325260a5d26c4685ac7df9a36f67071f --- /dev/null +++ b/releasenotes/notes/support-ceph-dashboard-3ee5e489ea16ea25.yaml @@ -0,0 +1,5 @@ +--- +features: + - | + Add support for ceph-dashboard. It enables 'dashboard' module in ceph cluster. + Its uses command 'ceph mgr module enable dashboard'.