diff options
| author | Alex Schultz <aschultz@redhat.com> | 2019-02-25 16:04:39 -0700 |
|---|---|---|
| committer | Alex Schultz <aschultz@redhat.com> | 2019-03-12 18:24:29 +0000 |
| commit | 78c819d6232b3fa5c6fb6aa5ea85a54c596f0b56 (patch) | |
| tree | 1bf168eae2fb5f47b01cccb2677c94a82a406439 /docker/macros.j2 | |
| parent | 3e5d8e2653db1c6c28cb428f81cd0bc332c623c3 (diff) | |
| download | kolla-78c819d6232b3fa5c6fb6aa5ea85a54c596f0b56.tar.gz kolla-78c819d6232b3fa5c6fb6aa5ea85a54c596f0b56.zip | |
Add distro_package_manager configuration
Add configuration to allow the switch between dnf/yum or provide an
alternative package manager.
Change-Id: I913769fcf5875a12b4561958cf7c90b74cd116ea
Diffstat (limited to 'docker/macros.j2')
| -rw-r--r-- | docker/macros.j2 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docker/macros.j2 b/docker/macros.j2 index ee1ff93c4..3e1353e71 100644 --- a/docker/macros.j2 +++ b/docker/macros.j2 @@ -1,7 +1,7 @@ {% macro install_packages(packages) -%} {% if packages is defined and packages|length > 0 -%} {% if base_package_type == 'rpm' -%} - RUN yum -y install {{ packages | join(' ') }} && yum clean all && rm -rf /var/cache/yum + RUN {{ distro_package_manager }} -y install {{ packages | join(' ') }} && {{ distro_package_manager }} clean all && rm -rf /var/cache/{{ distro_package_manager }} {%- elif base_package_type == 'deb' -%} {#- debian_package_install is a utility method to build up an appropriate |
