Bulk update to deployment
[dcaegen2/deployments.git] / archive / bootstrap / teardown.sh
1 #!/bin/bash
2 #
3 # ============LICENSE_START==========================================
4 # ===================================================================
5 # Copyright © 2017 AT&T Intellectual Property. All rights reserved.
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 # ECOMP and OpenECOMP are trademarks
21 # and service marks of AT&T Intellectual Property.
22 #
23 set -x
24 set -e
25
26 rm -f /tmp/ready_to_exit
27
28 source ./dcaeinstall/bin/activate
29 cd ./consul
30 cfy status
31 set +e
32 cfy uninstall -d hengine
33 cfy uninstall -d hrules
34 cfy uninstall -d tca
35 cfy uninstall -d ves
36 cfy uninstall -d cdapbroker
37 cfy uninstall -d cdap7
38 cfy uninstall -d policy_handler
39 cfy uninstall -d DeploymentHandler
40 cfy uninstall -d PlatformServicesInventory
41 cfy uninstall -d pgaas
42 cfy uninstall -d config_binding_service
43 cfy executions start -w uninstall -d DockerComponent
44 cfy deployments delete -d DockerComponent
45 cfy uninstall -d DockerPlatform
46 cfy uninstall -d consul
47 cd ..
48 cfy local uninstall
49
50 touch /tmp/ready_to_exit