c0028bc6ca19d7eaeeea3e453b67398391875072
[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_registry
32     - eg_helm-repo
33
34 ############ Center ############
35
36 ### Infrastructure ###
37
38 - hosts: center-infra
39   become: yes
40   tags:
41     - center-infra
42     - center
43
44   roles:
45     - k8s
46
47 ### Pre-Requisites ###
48
49 - hosts: prerequisitecenter
50   become: yes
51   tags:
52     - prerequisitecenter
53     - center
54
55   roles:
56     - eg_prerequisite
57     - helm
58     - kubeconfig
59
60 ### Other 3rd party related ###
61
62 - hosts: thirdpartycenter
63   become: yes
64   tags:
65     - thirdpartycenter
66     - center
67
68   roles:
69     - grafana
70
71 ### EdgeGallery related ###
72
73 - hosts: egcenter
74   become: yes
75   tags:
76     - egcenter
77     - center
78
79   roles:
80     - eg_secret
81     - eg_set-helm-repo
82     - service_center
83     - eg_user-mgmt
84     - eg_mecm-meo
85     - eg_mecm-fe
86     - eg_appstore
87     - eg_developer
88
89
90 ############ Edge ############
91
92 ### Infrastructure ###
93 - hosts: edge-infra
94   become: yes
95   tags:
96     - edge-infra
97     - edge
98
99   roles:
100     - docker
101     - eg_prerequisite
102     - k3s
103
104 ### Pre-Requisites ###
105
106 - hosts: prerequisiteedge
107   become: yes
108   tags:
109     - prerequisiteedge
110     - edge
111
112   roles:
113     - helm
114
115 ### Other 3rd party related ###
116
117 - hosts: thirdpartyedge
118   become: yes
119   tags:
120     - thirdpartyedge
121     - edge
122
123   roles:
124     - rabbitmq
125     - prometheus
126     - kubeconfig
127     - mepkubeconfig
128     - cadvisor
129
130 ### EdgeGallery related ###
131
132 - hosts: egedge
133   become: yes
134   tags:
135     - egedge
136     - edge
137
138   roles:
139     - eg_secret
140     - eg_set-helm-repo
141     - eg_mep
142     - eg_mecm-mepm