diff options
| author | Alex Schultz <aschultz@redhat.com> | 2019-01-21 12:58:19 -0700 |
|---|---|---|
| committer | Mark Goddard <mark@stackhpc.com> | 2019-03-12 17:48:18 +0000 |
| commit | 3e5d8e2653db1c6c28cb428f81cd0bc332c623c3 (patch) | |
| tree | 25de124db6ae7848cecb121ac414eb468bfd4d5c /docker/macros.j2 | |
| parent | 8df6eb01184672ffdc752437ea4d98d13f16026e (diff) | |
| download | kolla-3e5d8e2653db1c6c28cb428f81cd0bc332c623c3.tar.gz kolla-3e5d8e2653db1c6c28cb428f81cd0bc332c623c3.zip | |
Add python3 packages for RHEL systems
RDO is currently working on python3 support for the next version of
CentOS/RHEL based systems. This package uses the distro_python3 flag
that was added as part of I4028991bad92c0e8e21066cc4173c06ce5eba393 to
use the python3 specific package names. This change only adds python3
package names for RHEL systems.
Conflicts-With: https://review.openstack.org/#/c/636457/
Change-Id: Iad6b70b433a0dd1b0f8ae6790fd280594517661a
Related-Blueprint: python3-support
Diffstat (limited to 'docker/macros.j2')
| -rw-r--r-- | docker/macros.j2 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docker/macros.j2 b/docker/macros.j2 index 419fa0f4f..ee1ff93c4 100644 --- a/docker/macros.j2 +++ b/docker/macros.j2 @@ -1,8 +1,8 @@ {% macro install_packages(packages) -%} {% if packages is defined and packages|length > 0 -%} - {% if base_distro in ['centos', 'oraclelinux', 'rhel'] -%} + {% if base_package_type == 'rpm' -%} RUN yum -y install {{ packages | join(' ') }} && yum clean all && rm -rf /var/cache/yum - {%- elif base_distro in ['debian', 'ubuntu'] -%} + {%- elif base_package_type == 'deb' -%} {#- debian_package_install is a utility method to build up an appropriate set of commands to install packages in a debian-based environment that |
