Restructuring of install and uninstall scripts
[ealt-edge.git] / ocd / infra / playbooks / ealt-all-uninstall.yml
1 #
2 # Copyright 2020 Huawei Technologies Co., Ltd.
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
7 #
8 #     http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15
16 ---
17
18 ############ OCD ############
19
20 - hosts: ocdconsolidated
21   become: yes
22   tags:
23     - ocdhost
24     - ocdconsolidated
25
26   roles:
27     - eg_helm-repo
28     - eg_certs
29     - helm
30     - k8s
31
32 ############ Center ############
33
34 ### EdgeGallery related ###
35
36 - hosts: egcenter
37   become: yes
38   tags:
39     - egcenter
40     - center
41
42   roles:
43     - eg_mecm-meo
44     - eg_mecm-fe
45     - eg_appstore
46     - eg_developer
47     - eg_user-mgmt
48     - service_center
49     - eg_secrets
50
51 ### Other 3rd party related ###
52
53 - hosts: thirdpartycenter
54   become: yes
55   tags:
56     - thirdpartycenter
57     - center
58
59   roles:
60     - grafana
61
62 ### Pre-Requisites ###
63
64 - hosts: prerequisitecenter
65   become: yes
66   tags:
67     - prerequisitecenter
68     - center
69
70   roles:
71     - kubeconfig
72     - helm
73
74 ### Infrastructure ###
75
76 - hosts: center-infra
77   become: yes
78   tags:
79     - center-infra
80     - center
81
82   roles:
83     - k8s
84
85 ############ Edge ############
86
87 ### EdgeGallery related ###
88
89 - hosts: egedge
90   become: yes
91   tags:
92     - egedge
93     - edge
94
95   roles:
96     - eg_secrets
97     - eg_mep
98     - eg_mecm-mepm
99
100 ### Other 3rd party related ###
101
102 - hosts: thirdpartyedge
103   become: yes
104   tags:
105     - thirdpartyedge
106     - edge
107
108   roles:
109     - rabbitmq
110     - prometheus
111     - kubeconfig
112     - mepkubeconfig
113     - cadvisor
114
115 ### Pre-Requisites ###
116
117 - hosts: prerequisiteedge
118   become: yes
119   tags:
120     - prerequisiteedge
121     - edge
122
123   roles:
124     - helm
125
126 ### Infrastructure ###
127 - hosts: edge-infra
128   become: yes
129   tags:
130     - edge-infra
131     - edge
132
133   roles:
134     - k3s
135     - docker
136   # yamllint disable rule:new-line-at-end-of-file