]> 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:38 +0000 (15:14 -0400)
commitfa8b58fb33624518894339505c1214d599d00e7a
treef677302c8562716882d55418151783efc86278c6
parentfa16f6d923b853d3c1cdd2173fa724cd746175b2
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