summaryrefslogtreecommitdiff
path: root/tests/templates
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <marcin.juszkiewicz@linaro.org>2019-11-13 16:54:38 +0100
committerMarcin Juszkiewicz <marcin.juszkiewicz@linaro.org>2020-01-14 08:15:04 +0100
commit02c7efd42d072107d086f3d0885e4a19073cec5a (patch)
treeff7de4eb24a2158d3395d562ef176f8898b8870d /tests/templates
parente2f013357b850a433a300d4363e764ea9c3b9e5d (diff)
downloadkolla-02c7efd42d072107d086f3d0885e4a19073cec5a.tar.gz
kolla-02c7efd42d072107d086f3d0885e4a19073cec5a.zip
Ubuntu: use local APT mirrors if possible
APT has a way to fetch mirror list and autoselect best mirror. Change-Id: I8209770ca1353fd89aacef0859ca3a373645c6b2
Diffstat (limited to 'tests/templates')
-rw-r--r--tests/templates/template_overrides.j22
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/templates/template_overrides.j2 b/tests/templates/template_overrides.j2
index 515ae63ce..c25ddb928 100644
--- a/tests/templates/template_overrides.j2
+++ b/tests/templates/template_overrides.j2
@@ -75,7 +75,7 @@ RUN sed -i -e "s|http://deb.debian.org|http://{{ nodepool_mirror_host }}|" \
{% elif base_distro == "ubuntu" %}
{% endraw %}
-RUN sed -i -e "s|http://archive.ubuntu.com|http://{{ nodepool_mirror_host }}|" \
+RUN sed -i -e "s|mirror://mirrors.ubuntu.com/mirrors.txt|http://{{ nodepool_mirror_host }}/ubuntu/|" \
-e "s|http://ubuntu-cloud.archive.canonical.com/ubuntu|http://{{ nodepool_mirror_host }}/ubuntu-cloud-archive|" \
/etc/apt/sources.list