From b300efbc728f49f84c864a2c3bf3bd90a5522bed Mon Sep 17 00:00:00 2001 From: Daniel Farrell Date: Tue, 16 Jan 2018 08:19:15 -0500 Subject: [PATCH 1/1] Fix Packer libvirt, missing selinux bindings Builds were failing at Ansible provisioning step with error about trying to use selinux without the Python bindings. Change-Id: Id24eaa6d32339d0d5c94126bf01d32bf19e72ee3 Fixes: INTPAK-129 Signed-off-by: Daniel Farrell --- packer/provision/config_ansible_fedora.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packer/provision/config_ansible_fedora.sh b/packer/provision/config_ansible_fedora.sh index c8c5ab4..6d0f92e 100644 --- a/packer/provision/config_ansible_fedora.sh +++ b/packer/provision/config_ansible_fedora.sh @@ -7,7 +7,8 @@ set -x # Install Ansible, required for Packer's ansible-local provisioner # Git is required by the ansible-galaxy tool when installing roles -sudo dnf install -y ansible git python-dnf +# Ansible will fail if selinux is enabled but bindings not installed +sudo dnf install -y ansible git python-dnf libselinux-python # Install the latest release of ODL's Ansible role from Ansible Galaxy # The `ansible-galaxy` tool was installed by Ansible's RPM -- 2.36.6