ceph-dashboard: copy TLS cert/key on monitor

The ceph-dashboard role is executed on the mgr nodes so the TLS cert/key
files are copied to those nodes.
But we are running importing the cert/key files into the ceph
configuration on the monitor.

Closes: #5557

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit 2b8ebf1457)
pull/5653/head
Dimitri Savineau 2020-07-17 10:38:02 -04:00 committed by Dimitri Savineau
parent 0178114f3b
commit b11eeed833
1 changed files with 2 additions and 0 deletions

View File

@ -25,6 +25,7 @@
owner: root
group: root
mode: 0440
delegate_to: "{{ groups[mon_group_name][0] }}"
when: dashboard_crt | length > 0
- name: copy dashboard SSL certificate key
@ -34,6 +35,7 @@
owner: root
group: root
mode: 0440
delegate_to: "{{ groups[mon_group_name][0] }}"
when: dashboard_key | length > 0
- name: generate and copy self-signed certificate