load ONAP TOSCA into controller 65/67765/2
authorjh245g <jh245g@att.com>
Wed, 19 Sep 2018 15:20:45 +0000 (11:20 -0400)
committerJun (Nicolas) Hu <jh245g@att.com>
Wed, 19 Sep 2018 15:27:39 +0000 (15:27 +0000)
Change-Id: I5eb141a4207c34bc59fbcaf03b1750b7cd5d3052
Issue-ID: OOM-1350
Signed-off-by: jh245g <jh245g@att.com>
TOSCA/bootstrap.sh

index 3a415f0..b6a6372 100644 (file)
 # 4. execute this script with sudo
 
 
-apt-get update 
+apt-get update
 apt-get install build-essential libssl-dev libffi-dev python-dev gcc -y
 wget http://repository.cloudifysource.org/cloudify/18.3.23/community-release/cloudify-cli-community-18.3.23.deb
 dpkg -i cloudify-cli-community-18.3.23.deb
 cfy install cloudify-environment-setup/openstack.yaml -i cloudify-environment-setup/inputs/openstack.yaml --install-plugins --task-retries=30 --task-retry-interval=5
-cfy install cloudify-environment-setup/openstack.yaml -i cloudify-environment-setup/inputs/openstack.yaml --install-plugins --task-retries=30 --task-retry-interval=5
+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
+setprofiles=$(grep "cfy profiles use" cminstall.log | cut -d'`' -f2)
+eval $setprofiles
+cfy blueprints upload ONAP_TOSCA/onap_tosca.yaml -b onap