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
(cherry picked from commit 6229ee0de9
)
This commit is contained in:
parent
d697eb349a
commit
5a8a042c4a
|
@ -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
|
Loading…
Reference in New Issue