Removing iaas-adapter from install
[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 echo "Installing APP-C Features"
26 echo ""
27
28 for feature in ${APPC_FEATURES}
29 do
30   if [ -f ${APPC_FEATURE_DIR}/${feature}/install-feature.sh ]
31   then
32     ${APPC_FEATURE_DIR}/${feature}/install-feature.sh
33   else
34     echo "No installer found for feature ${feature}"
35   fi
36 done