X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=blueprints%2Fiotgateway%2Fscripts%2Fsetup.sh;h=7c4190a10cea4f530c64f88d4da84de0994ee549;hb=072b7aef359b6a2ee2fd59af672a1f17c6db3412;hp=8da394a2152fbccae586ec9555b8ac90ab0c4f43;hpb=2fb9fb10bf3fa61b1d3b9d44731bdae8388a3072;p=eliot.git diff --git a/blueprints/iotgateway/scripts/setup.sh b/blueprints/iotgateway/scripts/setup.sh index 8da394a..7c4190a 100755 --- a/blueprints/iotgateway/scripts/setup.sh +++ b/blueprints/iotgateway/scripts/setup.sh @@ -18,6 +18,9 @@ # sshpass needs to be installed before executing this script. # ######################################################################################## +echo "**********************************************************************" +echo "ELIOT IOT-Gateway Platform Deployment--------------------------STARTED" + # constants OSPLATFORM=$(awk -F= '/^NAME/{print $2}' /etc/os-release) @@ -87,8 +90,7 @@ setup_k8smaster_centos() # Setup ELIOT Node setup_k8sworkers_centos - kubectl apply -f cni/calico/rbac.yaml - kubectl apply -f cni/calico/calico.yaml + kubectl apply -f cni/calico/v38/calico.yaml } @@ -161,6 +163,20 @@ install_prometheus(){ echo "Prometheus deployed successfully on ELIOT Manager Node and integrated with CAdvisor running on IOT-Gateway Nodes " } +install_opcua_centos(){ + set -o xtrace + INSTALL_OPCUA_ATEDGE="cd eliot/blueprints/iotgateway/scripts/opcua/ && source install.sh" + while read line + do + nodeinfo="${line}" + nodeusr=$(echo ${nodeinfo} | cut -d"|" -f1) + nodeip=$(echo ${nodeinfo} | cut -d"|" -f2) + nodepaswd=$(echo ${nodeinfo} | cut -d"|" -f3) + sshpass -p ${nodepaswd} ssh ${nodeusr}@${nodeip} ${INSTALL_OPCUA_ATEDGE} < /dev/null + done < nodelist > /dev/null 2>&1 + echo " OPC-UA Server and Client are successfully Deployed on all IOT-Gateway Nodes" +} + # Start # @@ -188,8 +204,15 @@ install_edgex sleep 20 verify_edgex +# Installing OPC-UA on IOT Gateway Node + +if [[ $OSPLATFORM = *CentOS* ]]; then + install_opcua_centos + + # Removing the taint from master node kubectl taint nodes --all node-role.kubernetes.io/master- || true -echo "ELIOT IOT-Gateway Platform is Successfully Deployed !!!" +echo "**********************************************************************" +echo "ELIOT IOT-Gateway Platform Deployment--------------------------SUCCESS"