From 45a732aee489fb4891e1aa4cd44a805be1897959 Mon Sep 17 00:00:00 2001 From: Victor Palma Date: Tue, 29 May 2018 18:20:27 -0500 Subject: [PATCH] fix bootstrap for ubuntu trusty Change-Id: I8b9a34bb49a4be49ac5101dc42c7e855e0b485df --- elk_metrics_6x/bootstrap-embedded-ansible.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/elk_metrics_6x/bootstrap-embedded-ansible.sh b/elk_metrics_6x/bootstrap-embedded-ansible.sh index 01394744..0b429894 100644 --- a/elk_metrics_6x/bootstrap-embedded-ansible.sh +++ b/elk_metrics_6x/bootstrap-embedded-ansible.sh @@ -18,8 +18,15 @@ export ANSIBLE_EMBED_HOME="${HOME}/ansible25" OPTS+=('ANSIBLE_EMBED_HOME') if [[ ! -e "${ANSIBLE_EMBED_HOME}/bin/ansible" ]]; then - apt-get update - apt-get -y install python3-virtualenv python-virtualenv + if [ ${DISTRIB_RELEASE} = "14.04" ]; then + apt-get update + apt-get -y install python-virtualenv + echo "done installing python-virtualenv" + else + apt-get update + apt-get -y install python3-virtualenv python-virtualenv + echo "done installing python-virtualenv python3-virtualenv" + fi if [[ -f "/usr/bin/python2" ]]; then virtualenv --python="/usr/bin/python2" "${ANSIBLE_EMBED_HOME}" elif [[ -f "/usr/bin/python3" ]]; then