]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
ceph-dashboard: copy TLS cert/key on monitor
authorDimitri Savineau <dsavinea@redhat.com>
Fri, 17 Jul 2020 14:38:02 +0000 (10:38 -0400)
committerGuillaume Abrioux <gabrioux@redhat.com>
Mon, 20 Jul 2020 19:25:15 +0000 (21:25 +0200)
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 2b8ebf14574e927bfabd939cc6263eb27a65afb3)

roles/ceph-dashboard/tasks/configure_dashboard.yml

index 746ccc43badfc357a3bf87d4530a69d0ed03835d..985d76c0c8c0b35f339f25c927571cf484956bc6 100644 (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