cloud-init-dev team mailing list archive
-
cloud-init-dev team
-
Mailing list archive
-
Message #03600
[Merge] ~powersj/cloud-init:disable-fastestmirror into cloud-init:master
Joshua Powers has proposed merging ~powersj/cloud-init:disable-fastestmirror into cloud-init:master.
Commit message:
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.
Requested reviews:
cloud-init commiters (cloud-init-dev)
For more details, see:
https://code.launchpad.net/~powersj/cloud-init/+git/cloud-init/+merge/332511
--
Your team cloud-init commiters is requested to review the proposed merge of ~powersj/cloud-init:disable-fastestmirror into cloud-init:master.
diff --git a/tools/run-centos b/tools/run-centos
index d44d514..baa86b2 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" sh -c "sed -i s/enabled=1/enabled=0/ /etc/yum/pluginconf.d/fastestmirror.conf"
fi
}
Follow ups