diff options
| author | Radosław Piliszek <radoslaw.piliszek@gmail.com> | 2019-06-07 20:21:15 +0200 |
|---|---|---|
| committer | Radosław Piliszek <radoslaw.piliszek@gmail.com> | 2019-07-03 16:58:49 +0200 |
| commit | e7e0adad6da25fbaa827db9309a22ae4ec377c5a (patch) | |
| tree | 4939f73198a56b3b815f613ca1d6579d064cee45 /tests | |
| parent | c553afa30853c4f110a4d0918c80c1cc3a1932b5 (diff) | |
| download | kolla-e7e0adad6da25fbaa827db9309a22ae4ec377c5a.tar.gz kolla-e7e0adad6da25fbaa827db9309a22ae4ec377c5a.zip | |
CI: Clean up Zuul repo mirrors for CentOS
- unify RDO mirror definition with others
- drop definitions of unused mirrors: grafana, elastic
- clean up the process of mirror substitution:
- use the more common style of sed d command
- apply more specific substitutions
Change-Id: Idad2c6956cca647d4c865d6f6149ea37164db568
Signed-off-by: Radosław Piliszek <radoslaw.piliszek@gmail.com>
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/templates/template_overrides.j2 | 24 | ||||
| -rw-r--r-- | tests/vars/zuul.yml | 4 |
2 files changed, 15 insertions, 13 deletions
diff --git a/tests/templates/template_overrides.j2 b/tests/templates/template_overrides.j2 index 38042ce62..22baa2a56 100644 --- a/tests/templates/template_overrides.j2 +++ b/tests/templates/template_overrides.j2 @@ -21,7 +21,7 @@ RUN echo 'APT::Get::AllowUnauthenticated "true";' > /etc/apt/apt.conf.d/99allow- {% elif base_distro == 'centos' %} {% endraw %} -RUN sed -i -e "/^mirrorlist/d" \ +RUN sed -i -e "/^mirrorlist/ d" \ -e "s|^#baseurl=http://mirror.centos.org|baseurl=http://{{ nodepool_mirror_host }}|" \ /etc/yum.repos.d/CentOS-Base.repo @@ -33,15 +33,19 @@ RUN sed -i -e "/^mirrorlist/d" \ {% if base_distro == "centos" %} {% endraw %} -RUN sed -i -e "/^mirrorlist/d" \ - -e "/^metalink/d" \ - -e "s|^#baseurl=http://download.fedoraproject.org/pub|baseurl=http://{{ nodepool_mirror_host }}|g" \ - -e "s|^baseurl=http://mirror.centos.org|baseurl=http://{{ nodepool_mirror_host }}|g" \ - -e "s|^#baseurl=http://mirror.centos.org|baseurl=http://{{ nodepool_mirror_host }}|g" \ - -e "s|^baseurl=https://packages.elastic.co|baseurl={{ nodepool_elastic_proxy }}|g" \ - -e "s|^baseurl=https://packagecloud.io/grafana|baseurl={{ nodepool_grafana_proxy }}|g" \ - -e "s|^baseurl=https://trunk.rdoproject.org|baseurl=http://{{ nodepool_rdo_proxy }}|g" \ - -e "s|^baseurl=https://cbs.centos.org/repos|baseurl={{ nodepool_cbs_centos_proxy }}|g" \ +## NOTE(yoctozepto): GPG key location is replaced for Percona repo only +## TODO(yoctozepto): CentOS hits external EPEL repo for its repo package (epel-release-*.rpm), should use the mirrored +RUN sed -i \ + -e "/^mirrorlist/ d" \ + -e "s|^#baseurl=http://mirror.centos.org|baseurl=http://{{ nodepool_mirror_host }}|" \ + /etc/yum.repos.d/CentOS-*.repo \ + && sed -i \ + -e "/^metalink/ d" \ + -e "s|^#baseurl=http://download.fedoraproject.org/pub|baseurl=http://{{ nodepool_mirror_host }}|" \ + /etc/yum.repos.d/epel*.repo \ + && sed -i \ + -e "s|https://trunk.rdoproject.org|{{ nodepool_rdo_proxy }}|g" \ + -e "s|https://cbs.centos.org/repos|{{ nodepool_cbs_centos_proxy }}|g" \ -e "s|https://repo.percona.com|{{ nodepool_percona_proxy }}|g" \ /etc/yum.repos.d/*.repo diff --git a/tests/vars/zuul.yml b/tests/vars/zuul.yml index 2465a3f79..68c35e69b 100644 --- a/tests/vars/zuul.yml +++ b/tests/vars/zuul.yml @@ -1,9 +1,7 @@ --- -nodepool_rdo_proxy: "{{ zuul_site_mirror_fqdn }}:8080/rdo" +nodepool_rdo_proxy: "http://{{ zuul_site_mirror_fqdn }}:8080/rdo" nodepool_pypi_mirror: "http://{{ zuul_site_mirror_fqdn }}:8080/pypi/simple" nodepool_mirror_host: "{{ zuul_site_mirror_fqdn }}" nodepool_npmjs_proxy: "http://{{ zuul_site_mirror_fqdn }}:8080/registry.npmjs/" -nodepool_elastic_proxy: "http://{{ zuul_site_mirror_fqdn }}:8080/elastic/" -nodepool_grafana_proxy: "http://{{ zuul_site_mirror_fqdn }}:8080/grafana/" nodepool_cbs_centos_proxy: "http://{{ zuul_site_mirror_fqdn }}:8080/cbs.centos" nodepool_percona_proxy: "http://{{ zuul_site_mirror_fqdn }}:8080/percona" |
