Fix PLA relations, add missing ENVs, and include it in the bundle
[osm/devops.git] / installers / charm / bundles / osm / bundle.yaml
1 # Copyright 2020 Canonical Ltd.
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #     http://www.apache.org/licenses/LICENSE-2.0
8 #
9 #     Unless required by applicable law or agreed to in writing, software
10 #     distributed under the License is distributed on an "AS IS" BASIS,
11 #     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 #     See the License for the specific language governing permissions and
13 #     limitations under the License.
14 description: Single instance OSM bundle
15 bundle: kubernetes
16 applications:
17   zookeeper-k8s:
18     charm: "cs:~charmed-osm/zookeeper-k8s"
19     channel: "stable"
20     scale: 1
21     series: kubernetes
22     storage:
23       database: 100M
24     options:
25       # client-port: 2181
26       server-port: 2888
27       leader-election-port: 3888
28       zookeeper-units: 1
29     annotations:
30       gui-x: 0
31       gui-y: 550
32   mariadb-k8s:
33     charm: "cs:~charmed-osm/mariadb-k8s"
34     channel: "stable"
35     scale: 1
36     series: kubernetes
37     storage:
38       database: 50M
39     options:
40       password: manopw
41       root_password: osm4u
42       user: mano
43       database: database
44       mysql_port: "3306"
45       query-cache-type: "OFF"
46       query-cache-size: 0
47       ha-mode: false
48     annotations:
49       gui-x: -250
50       gui-y: -200
51   kafka-k8s:
52     charm: "cs:~charmed-osm/kafka-k8s"
53     channel: "stable"
54     scale: 1
55     series: kubernetes
56     storage:
57       database: 100M
58     options:
59       advertised-hostname: "kafka-k8s"
60       advertised-port: 9092
61       kafka-units: 1
62       zookeeper-units: 1
63       zookeeper-service-name: zookeeper-k8s-endpoints
64     annotations:
65       gui-x: 0
66       gui-y: 300
67   mongodb-k8s:
68     charm: "cs:~charmed-osm/mongodb-k8s"
69     channel: "stable"
70     scale: 1
71     series: kubernetes
72     storage:
73       database: 50M
74     options:
75       advertised-port: 27017
76       replica-set: rs0
77       namespace: osm
78       service-name: mongodb-k8s-endpoints
79       cluster-domain: cluster.local
80       enable-sidecar: false
81     annotations:
82       gui-x: 0
83       gui-y: 50
84   nbi-k8s:
85     charm: "%(prefix)s/nbi-k8s%(suffix)s"
86     channel: "%(channel)s"
87     scale: 1
88     series: kubernetes
89     storage:
90       packages: 50M
91     options:
92       log_level: "INFO"
93       DATABASE_COMMONKEY: osm
94     annotations:
95       gui-x: 0
96       gui-y: -200
97   ro-k8s:
98     charm: "%(prefix)s/ro-k8s%(suffix)s"
99     channel: "%(channel)s"
100     scale: 1
101     series: kubernetes
102     storage:
103       log: 50M
104     options:
105       vim_database: "mano_vim_db"
106       ro_database: "mano_db"
107       OPENMANO_TENANT: "osm"
108     annotations:
109       gui-x: -250
110       gui-y: 300
111   ui-k8s:
112     charm: "%(prefix)s/ui-k8s%(suffix)s"
113     channel: "%(channel)s"
114     scale: 1
115     series: kubernetes
116     options:
117       mysql_database: lwui
118     annotations:
119       gui-x: 250
120       gui-y: -200
121   ng-ui:
122     charm: "%(prefix)s/ng-ui%(suffix)s"
123     channel: "%(channel)s"
124     scale: 1
125     series: kubernetes
126     options:
127       port: 80
128       server_name: localhost
129       client_max_body_size: 15M
130   lcm-k8s:
131     charm: "%(prefix)s/lcm-k8s%(suffix)s"
132     channel: "%(channel)s"
133     scale: 1
134     series: kubernetes
135     storage:
136       packages: 50M
137     options:
138       vca_host: vca
139       vca_port: 17070
140       vca_user: admin
141       vca_password: secret
142       vca_pubkey: pubkey
143       vca_cacert: cacert
144       vca_apiproxy: apiproxy
145       use_external_vca: false
146       DATABASE_COMMONKEY: osm
147     annotations:
148       gui-x: -250
149       gui-y: 50
150   mon-k8s:
151     charm: "%(prefix)s/mon-k8s%(suffix)s"
152     channel: "%(channel)s"
153     scale: 1
154     series: kubernetes
155     storage:
156       database: 100M
157     options:
158       OSMMON_OPENSTACK_DEFAULT_GRANULARITY: 300
159       OSMMON_GLOBAL_REQUEST_TIMEOUT: 10
160       OSMMON_GLOBAL_LOGLEVEL: INFO
161       OSMMON_DATABASE_COMMONKEY: osm
162       OSMMON_COLLECTOR_INTERVAL: 30
163       OSMMON_EVALUATOR_INTERVAL: 30
164       vca_host: vca
165       vca_user: admin
166       vca_password: secret
167       vca_cacert: cacert
168       use_external_vca: false
169     annotations:
170       gui-x: 250
171       gui-y: 50
172   pol-k8s:
173     charm: "%(prefix)s/pol-k8s%(suffix)s"
174     channel: "%(channel)s"
175     scale: 1
176     series: kubernetes
177     storage:
178       database: 100M
179     options:
180       log_level: INFO
181     annotations:
182       gui-x: -250
183       gui-y: 550
184   pla:
185     charm: "%(prefix)s/pla%(suffix)s"
186     channel: "%(channel)s"
187     scale: 1
188     series: kubernetes
189     annotations:
190       gui-x: 500
191       gui-y: -200
192   prometheus-k8s:
193     charm: "cs:~charmed-osm/prometheus-k8s"
194     channel: "stable"
195     scale: 1
196     series: kubernetes
197     storage:
198       database: 50M
199     options:
200       advertised-port: 9090
201       web-subpath: /
202       default-target: "mon-k8s:8000"
203     annotations:
204       gui-x: 250
205       gui-y: 300
206   grafana-k8s:
207     charm: "cs:~charmed-osm/grafana-k8s"
208     channel: "stable"
209     scale: 1
210     series: kubernetes
211     annotations:
212       gui-x: 250
213       gui-y: 550
214
215 relations:
216   - - "kafka-k8s:zookeeper"
217     - "zookeeper-k8s:zookeeper"
218   - - "ro-k8s:mysql"
219     - "mariadb-k8s:mysql"
220   - - "nbi-k8s:mongo"
221     - "mongodb-k8s:mongo"
222   - - "nbi-k8s:kafka"
223     - "kafka-k8s:kafka"
224   - - "lcm-k8s:kafka"
225     - "kafka-k8s:kafka"
226   - - "lcm-k8s:mongo"
227     - "mongodb-k8s:mongo"
228   - - "mon-k8s:kafka"
229     - "kafka-k8s:kafka"
230   - - "mon-k8s:mongo"
231     - "mongodb-k8s:mongo"
232   - - "pol-k8s:kafka"
233     - "kafka-k8s:kafka"
234   - - "pol-k8s:mongo"
235     - "mongodb-k8s:mongo"
236   - - "lcm-k8s:ro"
237     - "ro-k8s:ro"
238   - - "prometheus-k8s:prometheus"
239     - "mon-k8s:prometheus"
240   - - "grafana-k8s:prometheus"
241     - "prometheus-k8s:prometheus"
242   - - "ui-k8s:mysql"
243     - "mariadb-k8s:mysql"
244   - - "ui-k8s:nbi"
245     - "nbi-k8s:nbi"
246   - - "prometheus-k8s:prometheus"
247     - "nbi-k8s:prometheus"
248   - - "pla:kafka"
249     - "kafka-k8s:kafka"
250   - - "pla:mongo"
251     - "mongodb-k8s:mongo"
252   - - "pla:mysql"
253     - "mariadb-k8s:mysql"