]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
dashboard: Set ssl_server_port if it is supported
authorBoris Ranto <branto@redhat.com>
Thu, 4 Apr 2019 17:51:16 +0000 (19:51 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Thu, 16 May 2019 14:39:13 +0000 (16:39 +0200)
We cannot use the old fashioned config-key way, here. It was not
supported when the option was introduced (post 14.2.0). Since the option
is not always supported we can simply ignore the potential failure on
ceph clusters that do not support it.

Signed-off-by: Boris Ranto <branto@redhat.com>
roles/ceph-dashboard/tasks/configure_dashboard.yml

index 4780e03f0cc758ed4479eb73d1739354ccd794f9..3ec760c1d9cf8a365f3549b4a9f52b9766ee22e4 100644 (file)
     {{ mgr_prefix }} ceph config set mgr mgr/dashboard/server_port {{ dashboard_port }} || \
     {{ mgr_prefix }} ceph config-key set mgr/dashboard/server_port {{ dashboard_port }}
 
+- name: "set the dashboard SSL port ({{ dashboard_port }})"
+  command: "{{ mgr_prefix }} ceph config set mgr mgr/dashboard/ssl_server_port {{ dashboard_port }}" # Do not use the old fashioned config-key way ssl_server_port, it was not supported when this option was introduced
+  failed_when: false # Do not fail if the option does not exist, it only exists post-14.2.0
+
 - name: disable mgr dashboard module (restart)
   command: "{{ mgr_prefix }} ceph mgr module disable dashboard"
   changed_when: false