diff options
| author | Zuul <zuul@review.opendev.org> | 2020-01-13 10:15:36 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2020-01-13 10:15:36 +0000 |
| commit | fc572d1cda56de637c683871657c317321db2ce3 (patch) | |
| tree | 7753d675e248d77c3a7541e7e3c306e7e3867a31 | |
| parent | 86d616bbe738effd430fff53298a7bbde1fbaca3 (diff) | |
| parent | 2cf3f2309a2a774f65d403b90d1950cab001863f (diff) | |
| download | kolla-fc572d1cda56de637c683871657c317321db2ce3.tar.gz kolla-fc572d1cda56de637c683871657c317321db2ce3.zip | |
Merge "Use Debian mirror in CI jobs"
| -rw-r--r-- | tests/templates/template_overrides.j2 | 13 |
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 \ |
