Disables CA checking for Ambari on Centos/RHEL

The default SSL certificate, which is generated when the Ambari server is
installed, is invalid.

We are disabling check for now.

Change-Id: Ifcbc931e2ca23cb1fe221d509f57750e7e060aea
Partial-bug: #1748507
This commit is contained in:
Telles Nobrega 2018-02-12 11:14:15 -03:00 committed by Luigi Toscano
parent 8a9185373f
commit 6229ee0de9
1 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,14 @@
#!/bin/bash
if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
set -x
fi
set -eu
set -o pipefail
case "${DISTRO_NAME}" in
rhel7 | centos7 )
config=/etc/python/cert-verification.cfg
[ -e $config ] && sed -i "s%^\(verify=\s*\).*$%verify=disable%" $config
;;
esac