Skip to content
Snippets Groups Projects
Commit 5230e073 authored by Julien Leduc's avatar Julien Leduc
Browse files

using a squid proxy in the kubernetes cluster for yum if one is available

parent 146f339b
No related branches found
No related tags found
No related merge requests found
......@@ -46,4 +46,8 @@ if [[ -n ${BUILDTREE_BASE} ]]; then
chmod 666 /dev/nst* /dev/st* /dev/sg*
# creating /var/log/cta needed by taped
mkdir -p /var/log/cta
else
# some yum optimisations for the standard system
SQUID_PROXY=squid.kube-system.svc.cluster.local
ping -W 1 -c1 ${SQUID_PROXY} &>/dev/null && yum() { echo "Using SQUID proxy ${SQUID_PROXY}"; http_proxy=${SQUID_PROXY}:3128 /usr/bin/yum $@; }
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment