VOL-331 VOL-327 Fixes to the installer to address the two Jiras listed
in addition to some typos and the early installation of Python to ensure
that ansible can run.
Change-Id: Ie97c93dc8ea9caaf9ad20c6eed5bdb1078799fbd
diff --git a/install/installer.sh b/install/installer.sh
index ae2310c..c0d2a55 100755
--- a/install/installer.sh
+++ b/install/installer.sh
@@ -118,6 +118,17 @@
echo -e "${lBlue}Propagating ssh keys${NC}"
cp -r .keys ansible/roles/cluster-host/files
+# 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}"
+ 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 -R /home/voltha/python-deb
+ ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i .keys/$i voltha@$i rm -fr python-deb
+
+done
+
+
# Running ansible
echo -e "${lBlue}Running ansible${NC}"
cp ansible/ansible.cfg .ansible.cfg