From 8baf819b083b51b7c2c8681b9e79087a0cdb1225 Mon Sep 17 00:00:00 2001 From: Richard Su Date: Wed, 24 Sep 2014 14:35:56 -0700 Subject: [PATCH] Install openstack-selinux on RHEL The openstack-selinux package contains policy updates for OpenStack. Updates are accrued in openstack-selinux before they are merged into the upstream selinux-policy package. Change-Id: I7c00e5cae17489202fe7aee3e656fca27ab630ba --- .../rhel-common/install.d/10-openstack-selinux-rhel | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 elements/rhel-common/install.d/10-openstack-selinux-rhel diff --git a/elements/rhel-common/install.d/10-openstack-selinux-rhel b/elements/rhel-common/install.d/10-openstack-selinux-rhel new file mode 100755 index 000000000..1e3d242b3 --- /dev/null +++ b/elements/rhel-common/install.d/10-openstack-selinux-rhel @@ -0,0 +1,10 @@ +#!/bin/bash +# Install openstack-selinux if it is available +# dib-lint: disable=sete +set -ux +set -o pipefail + +HAS_PACKAGE=$(yum list | grep openstack-selinux) +if [ -n "$HAS_PACKAGE" ]; then + install-packages openstack-selinux +fi