X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=blueprints%2Fiotgateway%2Fscripts%2Fsetup.sh;fp=blueprints%2Fiotgateway%2Fscripts%2Fsetup.sh;h=e1af2bbce34416f5087794101b2cbe986047946d;hb=2c97a07953c45a070ad79eaa185d505a32e4c695;hp=8406c733cc6825156d08634516b9247101979b42;hpb=b7b9a88e07c4fb4c8b00582c90b3646f4a4ad0d4;p=eliot.git diff --git a/blueprints/iotgateway/scripts/setup.sh b/blueprints/iotgateway/scripts/setup.sh index 8406c73..e1af2bb 100755 --- a/blueprints/iotgateway/scripts/setup.sh +++ b/blueprints/iotgateway/scripts/setup.sh @@ -160,6 +160,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 # @@ -187,6 +201,12 @@ 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