]> git-server-git.apps.pok.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 <dsavinea@redhat.com>
Mon, 9 Aug 2021 19:17:58 +0000 (15:17 -0400)
commitbc9f2017db95d44047a552f8e7cda05f239ba7fd
treec7771fc2f9d379ab64b09af3aa2ee1a67da0dedc
parent5746044aa4743fdfd2de6cacead868c72fc36925
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