Changes to clean up python installation to remove errors reported that
made no difference in the installation outcome but were an annoyance.
Change-Id: Id1be7c9b40e85757feb46f3a34621c61b3a451f5
diff --git a/install/ansible/roles/docker-compose/tasks/main.yml b/install/ansible/roles/docker-compose/tasks/main.yml
index 4bf56e9..826b8e3 100644
--- a/install/ansible/roles/docker-compose/tasks/main.yml
+++ b/install/ansible/roles/docker-compose/tasks/main.yml
@@ -1,10 +1,10 @@
-- name: Executable is downloaded
+- name: Docker compose executable is downloaded
get_url:
url: https://github.com/docker/compose/releases/download/1.9.0/docker-compose-Linux-x86_64
dest: /home/vinstall
mode: 0644
when: target == "installer"
-- name: Executable is present
+- name: Docker Compose executable is installed
copy:
src: /home/vinstall/docker-compose-Linux-x86_64
dest: /usr/local/bin/docker-compose
diff --git a/install/installer.sh b/install/installer.sh
index c0d2a55..9a23b79 100755
--- a/install/installer.sh
+++ b/install/installer.sh
@@ -121,8 +121,9 @@
# Install python on all the 3 servers since python is required for
for i in $hosts
do
- echo -e "${lBlue}Installing ${lCyan}Python-minimal${lBlue}${NC}"
+ echo -e "${lBlue}Installing ${lCyan}Python${lBlue}${NC}"
scp -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i .keys/$i -r python-deb voltha@$i:.
+ ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i .keys/$i voltha@$i "sudo dpkg -i /home/voltha/python-deb/*minimal*"
ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i .keys/$i voltha@$i sudo dpkg -i -R /home/voltha/python-deb
ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i .keys/$i voltha@$i rm -fr python-deb