summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xelements/ambari/post-install.d/20-disable-ca-certificate14
1 files changed, 14 insertions, 0 deletions
diff --git a/elements/ambari/post-install.d/20-disable-ca-certificate b/elements/ambari/post-install.d/20-disable-ca-certificate
new file mode 100755
index 0000000..711f1f2
--- /dev/null
+++ b/elements/ambari/post-install.d/20-disable-ca-certificate
@@ -0,0 +1,14 @@
1#!/bin/bash
2
3if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
4 set -x
5fi
6set -eu
7set -o pipefail
8
9case "${DISTRO_NAME}" in
10 rhel7 | centos7 )
11 config=/etc/python/cert-verification.cfg
12 [ -e $config ] && sed -i "s%^\(verify=\s*\).*$%verify=disable%" $config
13 ;;
14esac