Use package-installs in fedora

Updates the fedora element to use the declarative package install
support provided by the package-installs element.

Change-Id: Ib3eb1936aa5c4efc350828e004794b0a8bd6c6c4
This commit is contained in:
James Slagle 2014-07-21 13:13:00 -04:00
parent 17f8bda93f
commit 3d0e111479
4 changed files with 14 additions and 31 deletions

View file

@ -1,9 +0,0 @@
#!/bin/bash
set -eu
set -o pipefail
# On a fresh Fedora 18 install you might have to update audit in order to
# fix a conflict with a file from the glibc package.
# https://bugzilla.redhat.com/show_bug.cgi?id=894307
exec install-packages audit

View file

@ -1,10 +0,0 @@
#!/bin/bash
set -eu
set -o pipefail
# The version of openssl shipped in the fedora cloud image is no longer
# compatible with new python environments installed by virtualenv, so we need
# to update it first.
# See https://bugs.launchpad.net/diskimage-builder/+bug/1254879
install-packages openssl

View file

@ -1,8 +0,0 @@
#!/bin/bash
set -eux
set -o pipefail
# Workaround for:
# https://bugzilla.redhat.com/show_bug.cgi?id=1066983
install-packages vim-minimal

View file

@ -1,7 +1,13 @@
#!/bin/bash
# On a fresh Fedora 18 install you might have to update audit in order to
# fix a conflict with a file from the glibc package.
# https://bugzilla.redhat.com/show_bug.cgi?id=894307
audit
set -eu
set -o pipefail
# The version of openssl shipped in the fedora cloud image is no longer
# compatible with new python environments installed by virtualenv, so we need
# to update it first.
# See https://bugs.launchpad.net/diskimage-builder/+bug/1254879
openssl
# FIXME: To avoid conflict between the pyOpenSSL installed via python-pip
# and pyOpenSSL installed via yum, we are going to sort it out installing
@ -11,4 +17,8 @@ set -o pipefail
# dependency of the python-paste package needed for the heat element,
# this seems to be conflicting and causing the image building process to
# fail. The problem is hapenning on a Fedora 18 system.
install-packages python-pyopenssl
python-pyopenssl
# Workaround for:
# https://bugzilla.redhat.com/show_bug.cgi?id=1066983
vim-minimal