Adding requests to bootstrap ansible

The requests package is used on the base system and needs to be installed
early. This package is eventually installed when the lxc-hosts play is
executed which is pulled in via the "lxc-template" dependency. However due
to recent changes in the "human_log" plugin as found here [0] we need to
have this package installed sooner.

[0] - aa69b10a1a

Change-Id: Id9475134950f329f777144dedb0e7c2c910ef009
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This commit is contained in:
Kevin Carter 2016-07-11 12:14:10 -05:00
parent 89d82b00fd
commit 75187434f6
No known key found for this signature in database
GPG Key ID: 69FEFFC5E2D9273F

View File

@ -47,11 +47,11 @@ ssh_key_create
# Install the base packages
if [[ $HOST_DISTRO =~ ^(Ubuntu|Debian) ]]; then
apt-get update && apt-get -y install git python-all python-dev curl python2.7-dev build-essential libssl-dev libffi-dev < /dev/null
apt-get update && apt-get -y install git python-all python-dev curl python2.7-dev build-essential libssl-dev libffi-dev python-requests < /dev/null
elif [[ $HOST_DISTRO =~ ^(CentOS|Red Hat) ]]; then
yum check-update && yum -y install git python2 curl autoconf gcc-c++ python2-devel gcc libffi-devel openssl-devel
yum check-update && yum -y install git python2 curl autoconf gcc-c++ python2-devel gcc libffi-devel openssl-devel python-requests
elif [[ $HOST_DISTRO =~ ^Fedora ]]; then
dnf -y install git python curl autoconf gcc-c++ python-devel gcc libffi-devel openssl-devel
dnf -y install git python curl autoconf gcc-c++ python-devel gcc libffi-devel openssl-devel python-requests
fi
# If the working directory exists remove it