]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
handler: do not validate the server certificate against the CA
authorGuillaume Abrioux <gabrioux@redhat.com>
Tue, 20 Aug 2019 09:47:48 +0000 (11:47 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 21 Aug 2019 13:40:07 +0000 (15:40 +0200)
Otherwise rgw handler ends up with an error when using https.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 9329bbb3af8b60a0cc1f5eec2129d67bb6aecff6)

roles/ceph-handler/templates/restart_rgw_daemon.sh.j2

index 65f0e315f77fc654e8fa619eaedfddaf4e20f938..f9ca7ae40486a4a788cd3fd81ee817f19ac10f11 100644 (file)
@@ -44,11 +44,11 @@ check_socket() {
 check_for_curl_or_wget() {
   local i=$1
   if ${DOCKER_EXECS[i]} command -v wget &>/dev/null; then
-    rgw_test_command="wget --tries 1 --quiet -O /dev/null"
+    rgw_test_command="wget --no-check-certificate --tries 1 --quiet -O /dev/null"
   elif ${DOCKER_EXECS[i]} command -v curl &>/dev/null; then
-    rgw_test_command="curl --fail --silent --output /dev/null"
+    rgw_test_command="curl -k --fail --silent --output /dev/null"
   else
-    echo "It seems that neither curl or wget are available on your system."
+    echo "It seems that neither curl nor wget are available on your system."
     echo "Cannot test rgw connection."
     exit 0
   fi