Adding to installFeatures sh
[appc/deployment.git] / installation / appc / src / main / scripts / installFeatures.sh
1 #!/bin/bash
2
3 ODL_HOME=${ODL_HOME:-/opt/opendaylight/current}
4 APPC_HOME=${APPC_HOME:-/opt/openecomp/appc}
5 APPC_FEATURE_DIR=${APPC_FEATURE_DIR:-${APPC_HOME}/features}
6
7 APPC_FEATURES=" \
8  appc-provider \
9  appc-event-listener \
10  appc-dispatcher \
11  appc-chef-adapter \
12  appc-netconf-adapter \
13  appc-rest-adapter \
14  appc-dmaap-adapter \
15  appc-dg-util \
16  appc-metric \
17  appc-dg-shared \
18  appc-asdc-listener"
19  
20 echo "Enabling core APP-C features"
21 ${ODL_HOME}/bin/client -u karaf feature:install odl-netconf-connector-all
22 ${ODL_HOME}/bin/client -u karaf feature:install odl-restconf-noauth
23 ${ODL_HOME}/bin/client -u karaf feature:install odl-netconf-topology
24
25 # When the karaf netconf feature gets installed, need to replace default password with OpenECOMP APP-C ODL Password
26 sed -i 's/admin<\/password>/Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U<\/password>/' ${ODL_HOME}/etc/opendaylight/karaf/99-netconf-connector.xml
27
28 echo "Installing APP-C Features"
29 echo ""
30
31 for feature in ${APPC_FEATURES}
32 do
33   if [ -f ${APPC_FEATURE_DIR}/${feature}/install-feature.sh ]
34   then
35     ${APPC_FEATURE_DIR}/${feature}/install-feature.sh
36   else
37     echo "No installer found for feature ${feature}"
38   fi
39 done