From 75187434f65d84592469414ffd351c67b32a724d Mon Sep 17 00:00:00 2001 From: Kevin Carter Date: Mon, 11 Jul 2016 12:14:10 -0500 Subject: [PATCH] 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] - https://github.com/openstack/openstack-ansible-plugins/commit/aa69b10a1a625249696389742353432cb93f13c6 Change-Id: Id9475134950f329f777144dedb0e7c2c910ef009 Signed-off-by: Kevin Carter --- scripts/bootstrap-ansible.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/bootstrap-ansible.sh b/scripts/bootstrap-ansible.sh index 8769d5b13e..b51cd4b1ae 100755 --- a/scripts/bootstrap-ansible.sh +++ b/scripts/bootstrap-ansible.sh @@ -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