Mount yum/vars along with yum repos

Since repos may rely on yum vars, it's required
to mount yum/vars along with yum repos.
Container builds already mount yum/vars along
with yum yum. Molecule jobs also adding it with [1].

Since the repo is branchless and used in CentOS7 too,
so using yum/vars instead of dnf/vars.

[1] https://review.opendev.org/c/openstack/tripleo-ansible/+/787423

Change-Id: I36f175d97a86d4221b09dadf62f64a16b5c527e2
This commit is contained in:
yatinkarel 2021-04-23 11:04:44 +05:30
parent 12655c7e73
commit 98fa494f5c
2 changed files with 4 additions and 0 deletions

View File

@ -40,6 +40,7 @@
buildah run
--volume {{ yum_install.path }}:/tmp/yum_install.sh
--volume {{ yum_repos_dir_path }}:/etc/yum.repos.d
--volume /etc/yum/vars:/etc/yum/vars
{% for repo in file_repos.stdout_lines %}
{% if repo is exists %}
--volume {{ repo }}:{{ repo }}
@ -57,6 +58,7 @@
buildah --debug run
--volume {{ yum_install.path }}:/tmp/yum_install.sh
--volume {{ yum_repos_dir_path }}:/etc/yum.repos.d
--volume /etc/yum/vars:/etc/yum/vars
{% for repo in file_repos.stdout_lines %}
{% if repo is exists %}
--volume {{ repo }}:{{ repo }}

View File

@ -107,6 +107,7 @@
buildah run
--volume {{ yum_update.path }}:/tmp/yum_update.sh
--volume {{ yum_repos_dir_path }}:/etc/yum.repos.d
--volume /etc/yum/vars:/etc/yum/vars
--volume /etc/pki:/etc/pki
{% if cache_volume is defined and cache_volume %}
--volume {{ cache_volume }}
@ -128,6 +129,7 @@
buildah --debug run
--volume {{ yum_update.path }}:/tmp/yum_update.sh
--volume {{ yum_repos_dir_path }}:/etc/yum.repos.d
--volume /etc/yum/vars:/etc/yum/vars
--volume /etc/pki:/etc/pki
{% for repo in file_repos.stdout_lines %}
{% if repo is exists %}