From ee90a6cda4083479d5e9e2aa26887d3db91a3785 Mon Sep 17 00:00:00 2001 From: Joshua Powers Date: Thu, 19 Oct 2017 12:58:12 -0600 Subject: tools: disable fastestmirror if using proxy Per centos documentation using the fastestmirror plugin is effective at finding the fastest mirror, unless you are behind a proxy. In that case you should disable it. Therefore, in our tests if we are setting the proxy we should also disable the fastestmirror plugin. --- tools/run-centos | 1 + 1 file changed, 1 insertion(+) (limited to 'tools') diff --git a/tools/run-centos b/tools/run-centos index d44d5145..e87b2025 100755 --- a/tools/run-centos +++ b/tools/run-centos @@ -153,6 +153,7 @@ start_container() { if [ ! -z "${http_proxy-}" ]; then debug 1 "configuring proxy ${http_proxy}" inside "$name" sh -c "echo proxy=$http_proxy >> /etc/yum.conf" + inside "$name" sed -i s/enabled=1/enabled=0/ /etc/yum/pluginconf.d/fastestmirror.conf fi } -- cgit v1.2.3