blob: b6a63721c8294f56028be17ab8eafe2424521a8a [file] [log] [blame]
jh245g0191c4f2018-08-27 10:01:58 -04001#!/bin/sh
2
3# ============LICENSE_START==========================================
4# ===================================================================
5# Copyright (c) 2018 AT&T
6#
7# Licensed under the Apache License, Version 2.0 (the "License");
8# you may not use this file except in compliance with the License.
9# You may obtain a copy of the License at
10#
11# http://www.apache.org/licenses/LICENSE-2.0
12#
13# Unless required by applicable law or agreed to in writing, software
14# distributed under the License is distributed on an "AS IS" BASIS,
15# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16# See the License for the specific language governing permissions and
17# limitations under the License.
18#============LICENSE_END============================================
19
20# this script will init a community version Cloudify manager
21# 1.environment ubuntu 16.04
22# 2. git clone oom project into that ubuntu environment
23# 3. provide the Openstack information in /TOSCA/cloudify-environment-setup/input/openstack.yaml
24# 4. execute this script with sudo
25
26
jh245gb1565702018-09-19 11:20:45 -040027apt-get update
jh245g0191c4f2018-08-27 10:01:58 -040028apt-get install build-essential libssl-dev libffi-dev python-dev gcc -y
29wget http://repository.cloudifysource.org/cloudify/18.3.23/community-release/cloudify-cli-community-18.3.23.deb
30dpkg -i cloudify-cli-community-18.3.23.deb
31cfy install cloudify-environment-setup/openstack.yaml -i cloudify-environment-setup/inputs/openstack.yaml --install-plugins --task-retries=30 --task-retry-interval=5
jh245gb1565702018-09-19 11:20:45 -040032cfy install cloudify-environment-setup/openstack.yaml -i cloudify-environment-setup/inputs/openstack.yaml --install-plugins --task-retries=30 --task-retry-interval=5 | tee cminstall.log
33setprofiles=$(grep "cfy profiles use" cminstall.log | cut -d'`' -f2)
34eval $setprofiles
35cfy blueprints upload ONAP_TOSCA/onap_tosca.yaml -b onap