]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
ceph-dashboard: fix TLS cert openssl generation
authorDimitri Savineau <dsavinea@redhat.com>
Mon, 9 Aug 2021 14:33:40 +0000 (10:33 -0400)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Mon, 9 Aug 2021 19:14:48 +0000 (15:14 -0400)
commit6897153ab75d08c62e2cb36eefd4e690f964b9fe
tree0160c9a45e9e9b5c6d937f7ec8c9e33ee77de37f
parent02750a94cc1d6f82003ac7d16f3ba2d21863e35d
ceph-dashboard: fix TLS cert openssl generation

With OpenSSL version prior 1.1.1 (like CentOS 7 with 1.0.2k), the -addext
doesn't exist.
As a solution, this uses the default openssl.cnf configuration file as a
template and add the subjectAltName in the v3_ca section. This temp openssl
configuration file is removed after the TLS certificate creation.
This patch also move the run_once statement at the block level.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1978869
Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit 5e0ace7e5493f7d8299155e915435691a0f1a007)
roles/ceph-dashboard/tasks/configure_dashboard.yml