Restructuring of install and uninstall scripts
[ealt-edge.git] / ocd / infra / playbooks / ealt-all.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
19 ############ OCD ############
20
21 - hosts: ocdconsolidated
22   become: yes
23   tags:
24     - ocdhost
25     - ocdconsolidated
26
27   roles:
28     - k8s
29     - helm
30     - eg_certs
31     - eg_helm-repo
32
33 ############ Center ############
34
35 ### Infrastructure ###
36
37 - hosts: center-infra
38   become: yes
39   tags:
40     - center-infra
41     - center
42
43   roles:
44     - k8s
45
46 ### Pre-Requisites ###
47
48 - hosts: prerequisitecenter
49   become: yes
50   tags:
51     - prerequisitecenter
52     - center
53
54   roles:
55     - helm
56     - kubeconfig
57
58 ### Other 3rd party related ###
59
60 - hosts: thirdpartycenter
61   become: yes
62   tags:
63     - thirdpartycenter
64     - center
65
66   roles:
67     - grafana
68
69 ### EdgeGallery related ###
70
71 - hosts: egcenter
72   become: yes
73   tags:
74     - egcenter
75     - center
76
77   roles:
78     - eg_secrets
79     - service_center
80     - eg_user-mgmt
81     - eg_mecm-meo
82     - eg_mecm-fe
83     - eg_appstore
84     - eg_developer
85
86
87 ############ Edge ############
88
89 ### Infrastructure ###
90 - hosts: edge-infra
91   become: yes
92   tags:
93     - edge-infra
94     - edge
95
96   roles:
97     - docker
98     - k3s
99
100 ### Pre-Requisites ###
101
102 - hosts: prerequisiteedge
103   become: yes
104   tags:
105     - prerequisiteedge
106     - edge
107
108   roles:
109     - helm
110
111 ### Other 3rd party related ###
112
113 - hosts: thirdpartyedge
114   become: yes
115   tags:
116     - thirdpartyedge
117     - edge
118
119   roles:
120     - rabbitmq
121     - prometheus
122     - kubeconfig
123     - mepkubeconfig
124     - cadvisor
125
126
127 ### EdgeGallery related ###
128
129 - hosts: egedge
130   become: yes
131   tags:
132     - egedge
133     - edge
134
135   roles:
136     - eg_secrets
137     - eg_mep
138     - eg_mecm-mepm
139   # yamllint disable rule:new-line-at-end-of-file