Skip to content

Commit ab4e9bf

Browse files
Merge pull request #837 from katarimanojk/ceph_adoption_dashboardport_change
Ceph adoption dashboard port change
2 parents 867dd8b + d924861 commit ab4e9bf

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

tests/roles/ceph_migrate/tasks/firewall.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@
5353
block: |
5454
# 100 ceph_alertmanager {'dport': [9093]}
5555
add rule inet filter TRIPLEO_INPUT tcp dport { 9093 } ct state new counter accept comment "100 ceph_alertmanager"
56-
# 100 ceph_dashboard {'dport': [8444]}
57-
add rule inet filter TRIPLEO_INPUT tcp dport { 8444 } ct state new counter accept comment "100 ceph_dashboard"
56+
# 100 ceph_dashboard {'dport': [8443]}
57+
add rule inet filter TRIPLEO_INPUT tcp dport { 8443 } ct state new counter accept comment "100 ceph_dashboard"
5858
# 100 ceph_grafana {'dport': [3100]}
5959
add rule inet filter TRIPLEO_INPUT tcp dport { 3100 } ct state new counter accept comment "100 ceph_grafana"
6060
# 100 ceph_prometheus {'dport': [9092]}

tests/roles/ceph_migrate/tasks/monitoring.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,25 @@
55
ceph_fsid: "{{ mon_dump.fsid }}"
66
ceph_cluster: ceph
77

8+
- name: Set ceph-mgr dashboard port configuration
9+
# cephadm runs w/ root privileges
10+
become: true
11+
block:
12+
- name: Set the dashboard port
13+
ansible.builtin.command: |
14+
{{ ceph_cli }} config set mgr mgr/dashboard/server_port 8443
15+
changed_when: false
16+
- name: Set the dashboard ssl port
17+
ansible.builtin.command: |
18+
{{ ceph_cli }} config set mgr mgr/dashboard/ssl_server_port 8443
19+
changed_when: false
20+
- name: Disable mgr dashboard module (restart)
21+
ansible.builtin.command: |
22+
{{ ceph_cli }} mgr module disable dashboard
23+
- name: Enable mgr dashboard module (restart)
24+
ansible.builtin.command: |
25+
{{ ceph_cli }} mgr module enable dashboard
26+
827
# - Expand labels to the whole hostmap
928
- name: Apply Monitoring label to the overcloud nodes
1029
ansible.builtin.import_tasks: labels.yaml

0 commit comments

Comments
 (0)