]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Added to the ceph-radosgw service template the ca-trust
authorfpantano <fpantano@redhat.com>
Tue, 26 Feb 2019 18:51:05 +0000 (19:51 +0100)
committermergify[bot] <mergify[bot]@users.noreply.github.com>
Thu, 28 Feb 2019 09:46:10 +0000 (09:46 +0000)
volume avoiding to expose useless information.
This bug is referred to the following bugzilla:

https://bugzilla.redhat.com/show_bug.cgi?id=1683290

Signed-off-by: fpantano <fpantano@redhat.com>
roles/ceph-rgw/templates/ceph-radosgw.service.j2

index 1e05a8cec9ed1f86879c4314ce26ce237ac51fe3..4b327aad2e4e997927573edcd49fb844f3a052ec 100644 (file)
@@ -17,6 +17,12 @@ ExecStart=/usr/bin/{{ container_binary }} run --rm --net=host \
   -v /etc/ceph:/etc/ceph:z \
   -v /var/run/ceph:/var/run/ceph:z \
   -v /etc/localtime:/etc/localtime:ro \
+  {% if ansible_distribution == 'RedHat' -%}
+  -v /etc/pki/ca-trust/extracted:/etc/pki/ca-trust/extracted:ro \
+  -v /etc/pki/ca-trust/source/anchors:/etc/pki/ca-trust/source/anchors:ro \
+  {% elif ansible_distribution == 'Ubuntu' -%}
+  -v /etc/ssl/certs:/etc/ssl/certs:ro \
+  {% endif -%}
   -e CEPH_DAEMON=RGW \
   -e CLUSTER={{ cluster }} \
   -e RGW_NAME={{ ansible_hostname }}.${INST_NAME} \