aboutsummaryrefslogtreecommitdiff
path: root/tests/templates
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <marcin.juszkiewicz@linaro.org>2020-01-10 16:40:50 +0100
committerMarcin Juszkiewicz <marcin.juszkiewicz@linaro.org>2020-01-10 16:42:32 +0100
commit2cf3f2309a2a774f65d403b90d1950cab001863f (patch)
treeb5933d86233e36b4fae31006fac3e32cbadf7456 /tests/templates
parent360d335e94246d7095672c5aa92b59afa380a059 (diff)
downloadkolla-2cf3f2309a2a774f65d403b90d1950cab001863f.tar.gz
kolla-2cf3f2309a2a774f65d403b90d1950cab001863f.zip
Use Debian mirror in CI jobs
There is Debian mirror on each CI worker so we should use it. Change-Id: Id3b55ac470a977be7ee7decdef3b49e8d89a130f
Diffstat (limited to 'tests/templates')
-rw-r--r--tests/templates/template_overrides.j213
1 files changed, 11 insertions, 2 deletions
diff --git a/tests/templates/template_overrides.j2 b/tests/templates/template_overrides.j2
index 9156a2a83..b77031876 100644
--- a/tests/templates/template_overrides.j2
+++ b/tests/templates/template_overrides.j2
@@ -64,10 +64,19 @@ RUN sed -i \
{% endblock %}
{% block base_footer %}
-{% if base_distro == "ubuntu" %}
+## TODO(yoctozepto): replace base repo earlier as well (like RHEL-based do)
+{% if base_distro == "debian" %}
+{% endraw %}
+
+RUN sed -i -e "s|http://deb.debian.org|http://{{ nodepool_mirror_host }}|" \
+ -e "s|http://security.debian.org|http://{{ nodepool_mirror_host }}|" \
+ /etc/apt/sources.list \
+ && apt-get update
+
+{% raw %}
+{% elif base_distro == "ubuntu" %}
{% endraw %}
-## TODO(yoctozepto): replace base repo earlier as well (like RHEL-based do)
RUN sed -i -e "s|http://archive.ubuntu.com|http://{{ nodepool_mirror_host }}|" \
-e "s|http://ubuntu-cloud.archive.canonical.com/ubuntu|http://{{ nodepool_mirror_host }}/ubuntu-cloud-archive|" \
/etc/apt/sources.list \