Install host key
[ccsdk/distribution.git] / odlsli / src / main / scripts / installCcsdkFeatures.sh
1 #!/bin/bash
2
3 ###
4 # ============LICENSE_START=======================================================
5 # openECOMP : SDN-C
6 # ================================================================================
7 # Copyright (C) 2017 AT&T Intellectual Property. All rights
8 #                                                       reserved.
9 # ================================================================================
10 # Licensed under the Apache License, Version 2.0 (the "License");
11 # you may not use this file except in compliance with the License.
12 # You may obtain a copy of the License at
13 #
14 #      http://www.apache.org/licenses/LICENSE-2.0
15 #
16 # Unless required by applicable law or agreed to in writing, software
17 # distributed under the License is distributed on an "AS IS" BASIS,
18 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 # See the License for the specific language governing permissions and
20 # limitations under the License.
21 # ============LICENSE_END=========================================================
22 ###
23
24 ODL_HOME=${ODL_HOME:-/opt/opendaylight/current}
25 ODL_ADMIN_PASSWORD=${ODL_ADMIN_PASSWORD:-Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U}
26 CCSDK_HOME=${CCSDK_HOME:-/opt/onap/ccsdk}
27 CCSDK_FEATURE_DIR=${CCSDK_FEATURE_DIR:-${CCSDK_HOME}/features}
28
29 CCSDK_CORE_FEATURES=" \
30  slicore-utils \
31  dblib \
32  sli \
33  filters \
34  sliPluginUtils \
35  sliapi"
36
37 CCSDK_ADAPTORS_FEATURES=" \
38   aai-service \
39   mdsal-resource \
40   resource-assignment \
41   sql-resource"
42
43 CCSDK_NORTHBOUND_FEATURES=" \
44   asdcApi \
45  dataChange"
46
47 CCSDK_PLUGINS_FEATURES=" \
48   properties-node \
49   restapi-call-node"
50
51
52 CCSDK_CORE_VERSION=${CCSDK_CORE_VERSION:-0.0.1-SNAPSHOT}
53 CCSDK_ADAPTORS_VERSION=${CCSDK_ADAPTORS_VERSION:-0.0.1-SNAPSHOT}
54 CCSDK_NORTHBOUND_VERSION=${CCSDK_NORTHBOUND_VERSION:-0.0.1-SNAPSHOT}
55 CCSDK_PLUGINS_VERSION=${CCSDK_PLUGINS_VERSION:-0.0.1-SNAPSHOT}
56
57 echo "Enabling core features"
58 ${ODL_HOME}/bin/client feature:install odl-restconf-all odl-mdsal-all odl-mdsal-apidocs
59
60 echo "Installing CCSDK sli/core"
61 for feature in ${CCSDK_CORE_FEATURES}
62 do
63   if [ -f ${CCSDK_FEATURE_DIR}/ccsdk-${feature}/install-feature.sh ]
64   then
65     ${CCSDK_FEATURE_DIR}/ccsdk-${feature}/install-feature.sh
66   else
67     echo "No installer found for feature ccsdk-${feature}"
68   fi
69 done
70
71 echo "Installing CCSDK sli/adaptors"
72 for feature in ${CCSDK_ADAPTORS_FEATURES}
73 do
74   if [ -f ${CCSDK_FEATURE_DIR}/ccsdk-${feature}/install-feature.sh ]
75   then
76     ${CCSDK_FEATURE_DIR}/ccsdk-${feature}/install-feature.sh
77   else
78     echo "No installer found for feature ccsdk-${feature}"
79   fi
80 done
81
82 echo "Installing CCSDK sli/northbound"
83 for feature in ${CCSDK_NORTHBOUND_FEATURES}
84 do
85   if [ -f ${CCSDK_FEATURE_DIR}/ccsdk-${feature}/install-feature.sh ]
86   then
87     ${CCSDK_FEATURE_DIR}/ccsdk-${feature}/install-feature.sh
88   else
89     echo "No installer found for feature ccsdk-${feature}"
90   fi
91 done
92
93
94 echo "Installing CCSDK sli/plugins"
95 for feature in ${CCSDK_PLUGINS_FEATURES}
96 do
97   if [ -f ${CCSDK_FEATURE_DIR}/ccsdk-${feature}/install-feature.sh ]
98   then
99     ${CCSDK_FEATURE_DIR}/ccsdk-${feature}/install-feature.sh
100   else
101     echo "No installer found for feature ccsdk-${feature}"
102   fi
103 done

© 2017 ONAP. Copyright © The Linux Foundation ®. All Rights Reserved.
The Linux Foundation has registered trademarks and uses trademarks.
For a list of trademarks of The Linux Foundation, please see our Trademark Usage page.
Linux is a registered trademark of Linus Torvalds.
Privacy Policy and Terms of Use