2 #############################################################################
4 # Copyright © 2018 Amdocs.
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
9 # http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
17 #############################################################################
19 # This installation is for a rancher managed install of kubernetes
20 # after this run the standard oom install
21 # this installation can be run on amy ubuntu 16.04 VM or physical host
22 # https://wiki.onap.org/display/DW/ONAP+on+Kubernetes
23 # source from https://jira.onap.org/browse/LOG-325
26 # master/dublin - LOG-895
27 # Rancher 1.6.25, Kubernetes 1.11.3, kubectl 1.11.3, Helm 2.9.2, Docker 17.03
28 # run as root - because of the logout that would be required after the docker user set
34 -b [branch] : branch = master or amsterdam (required)
35 -s [server] : server = IP or DNS name (required)
36 -e [environment] : use the default (onap)
40 install_rancher_and_onap() {
41 echo "Running rancher install first - 25 min"
42 wget https://git.onap.org/logging-analytics/plain/deploy/rancher/oom_rancher_setup.sh
43 sudo chmod 777 oom_rancher_setup.sh
44 sudo ./oom_rancher_setup.sh -b $BRANCH -s $SERVER -e $ENVIRON
45 echo "Running oom install - 45-90 min - 120 pod limit per vm"
46 wget https://git.onap.org/logging-analytics/plain/deploy/cd.sh
48 wget https://jira.onap.org/secure/attachment/11124/aaiapisimpledemoopenecomporg.cer
49 if [ "$BRANCH" == "amsterdam" ]; then
50 wget https://jira.onap.org/secure/attachment/11218/onap-parameters-amsterdam.yaml
51 sudo cp onap-parameters-amsterdam.yaml onap-parameters.yaml
53 wget https://jira.onap.org/secure/attachment/11414/values.yaml
55 wget https://jira.onap.org/secure/attachment/11126/aai-cloud-region-put.json
56 sudo ./cd.sh -b $BRANCH -e $ENVIRON
63 while getopts ":b:s:e:u:" PARAM; do
85 if [[ -z $SERVER ]]; then
90 install_rancher_and_onap $BRANCH $SERVER $ENVIRON