diff options
| author | Zuul <zuul@review.opendev.org> | 2026-07-30 21:22:19 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2026-07-30 21:22:19 +0000 |
| commit | 495b6b8fe437a06f32575b7308192ffc4f76f7b9 (patch) | |
| tree | 2a3e1131ae44f7376ed92f2610d9409597f5a0df /tests | |
| parent | 4b869009c3336ab0f68353e71fcef30dd4cf44b3 (diff) | |
| parent | 71867b8e57273ffcc26f4fedd84919b2608da3f2 (diff) | |
| download | kolla-495b6b8fe437a06f32575b7308192ffc4f76f7b9.tar.gz kolla-495b6b8fe437a06f32575b7308192ffc4f76f7b9.zip | |
Merge "Move PIP_* env variables to ARG and config"
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/playbooks/run.yml | 9 | ||||
| -rw-r--r-- | tests/templates/template_overrides.j2 | 28 |
2 files changed, 9 insertions, 28 deletions
diff --git a/tests/playbooks/run.yml b/tests/playbooks/run.yml index 99791da0f..47cfba466 100644 --- a/tests/playbooks/run.yml +++ b/tests/playbooks/run.yml @@ -62,6 +62,15 @@ when: - not publisher + - name: Set pip mirror config + vars: + kolla_pip_mirror_config: + DEFAULT: + pip_index_url: "{{ nodepool_pypi_mirror }}" + pip_trusted_host: "{{ nodepool_mirror_host }}" + ansible.builtin.set_fact: + kolla_build_config: "{{ kolla_build_config | combine(kolla_pip_mirror_config, recursive=True) }}" + - name: Set up base repo overrides vars: kolla_repos_yaml_config: diff --git a/tests/templates/template_overrides.j2 b/tests/templates/template_overrides.j2 index 3baa8d704..64b3d0f6e 100644 --- a/tests/templates/template_overrides.j2 +++ b/tests/templates/template_overrides.j2 @@ -1,31 +1,3 @@ {% raw %} {% extends parent_template %} - -{% block base_pip_conf %} -{% endraw %} - -ENV PIP_INDEX_URL {{ nodepool_pypi_mirror }} -ENV PIP_TRUSTED_HOST {{ nodepool_mirror_host }} -{% if use_infra_wheels_mirror | default(true) %} -ENV PIP_EXTRA_INDEX_URL {{ nodepool_wheel_mirror }} -{% endif %} - -{% raw %} -{% endblock %} -{% endraw %} - -{# Revert to upstream mirrors after build is complete #} - -{% raw %} -{% block footer %} -{% endraw %} - -ENV PIP_INDEX_URL= -ENV PIP_TRUSTED_HOST= -{% if use_infra_wheels_mirror | default(true) %} -ENV PIP_EXTRA_INDEX_URL= -{% endif %} - -{% raw %} -{% endblock %} {% endraw %} |
