Use cache for yum update in containers prepare

For the releases later than Stein, whereas a better podman versions
used, use the cached package manager contents.
In order to enable the container-image-prepare caching, we need to
specify a cache directory. Let's use
/var/tmp/tripleo-container-image-prepare-cache as a persistent directory
for our container modification process in CI.

Related-Bug: #1844446
Change-Id: I5ce878205ddb1854552937d99bb60a421091bd54
Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
This commit is contained in:
Bogdan Dobrelya 2019-09-23 14:01:32 +02:00
parent b91bfb047b
commit 746d0700c7
1 changed files with 3 additions and 0 deletions

View File

@ -11,6 +11,9 @@ parameter_defaults:
modify_vars:
tasks_from: yum_update.yml
yum_repos_dir_path: /etc/yum.repos.d
{% if release not in ['pike','queens','rocky','stein'] %}
yum_cache: /var/tmp/tripleo-container-image-prepare-cache
{% endif %}
update_repo: "{{ update_containers_repo }}"
{% if release not in ['newton', 'ocata', 'pike', 'queens', 'rocky'] %}
container_build_tool: buildah