From 3c618a1f6f0beca723e031fbe323b159400ad08f Mon Sep 17 00:00:00 2001 From: Mark Goddard Date: Mon, 16 Dec 2019 17:54:56 +0000 Subject: CentOS 8: base and openstack-base images Adds support to the base and openstack-base images for CentOS 8. These images have been removed from the list of unbuildable images, and replaced with all dependent images. Change-Id: I18fba8a5c2f99b700990cbf41c76077a1ec2408a Partially-Implements: blueprint centos-rhel-8 --- docker/macros.j2 | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'docker/macros.j2') diff --git a/docker/macros.j2 b/docker/macros.j2 index 8c698d278..461deb930 100644 --- a/docker/macros.j2 +++ b/docker/macros.j2 @@ -19,7 +19,11 @@ {# Be Extra vigilant about introducing any extra whitespace at the end of the macro for chaining purposes -#} {% macro rpm_security_update(cleanup) -%} +{% if distro_package_manager == 'dnf' -%} + {{ distro_package_manager }} -y distro-sync --security --sec-severity=Important --sec-severity=Critical +{%- else -%} {{ distro_package_manager }} -y update --security --sec-severity=Important --sec-severity=Critical +{%- endif %} {%- if cleanup %} \ && {{ distro_package_manager }} clean all && rm -rf /var/cache/{{ distro_package_manager }}{% endif -%} {%- endmacro %} -- cgit v1.2.3