jh245g | 0191c4f | 2018-08-27 10:01:58 -0400 | [diff] [blame] | 1 | #!/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 | |
jh245g | b156570 | 2018-09-19 11:20:45 -0400 | [diff] [blame] | 27 | apt-get update |
jh245g | 0191c4f | 2018-08-27 10:01:58 -0400 | [diff] [blame] | 28 | apt-get install build-essential libssl-dev libffi-dev python-dev gcc -y |
| 29 | wget http://repository.cloudifysource.org/cloudify/18.3.23/community-release/cloudify-cli-community-18.3.23.deb |
| 30 | dpkg -i cloudify-cli-community-18.3.23.deb |
| 31 | cfy install cloudify-environment-setup/openstack.yaml -i cloudify-environment-setup/inputs/openstack.yaml --install-plugins --task-retries=30 --task-retry-interval=5 |
jh245g | b156570 | 2018-09-19 11:20:45 -0400 | [diff] [blame] | 32 | cfy 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 |
| 33 | setprofiles=$(grep "cfy profiles use" cminstall.log | cut -d'`' -f2) |
| 34 | eval $setprofiles |
| 35 | cfy blueprints upload ONAP_TOSCA/onap_tosca.yaml -b onap |