Major improvement in OSM charms
[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     annotations:
25       gui-x: 0
26       gui-y: 550
27   mariadb-k8s:
28     charm: "cs:~charmed-osm/mariadb-k8s"
29     channel: "stable"
30     scale: 1
31     series: kubernetes
32     storage:
33       database: 50M
34     options:
35       password: manopw
36       root_password: osm4u
37       user: mano
38     annotations:
39       gui-x: -250
40       gui-y: -200
41   kafka-k8s:
42     charm: "cs:~charmed-osm/kafka-k8s"
43     channel: "stable"
44     scale: 1
45     series: kubernetes
46     storage:
47       database: 100M
48     annotations:
49       gui-x: 0
50       gui-y: 300
51   mongodb-k8s:
52     charm: "cs:~charmed-osm/mongodb-k8s"
53     channel: "stable"
54     scale: 1
55     series: kubernetes
56     storage:
57       database: 50M
58     options:
59       replica-set: rs0
60       namespace: osm
61       enable-sidecar: true
62     annotations:
63       gui-x: 0
64       gui-y: 50
65   nbi:
66     charm: "cs:~charmed-osm/nbi-5"
67     scale: 1
68     series: kubernetes
69     options:
70       database_commonkey: osm
71       auth_backend: keystone
72       log_level: DEBUG
73     annotations:
74       gui-x: 0
75       gui-y: -200
76   ro:
77     charm: "cs:~charmed-osm/ro-0"
78     scale: 1
79     series: kubernetes
80     options:
81       log_level: DEBUG
82     annotations:
83       gui-x: -250
84       gui-y: 300
85   ng-ui:
86     charm: "cs:~charmed-osm/ng-ui-16"
87     scale: 1
88     series: kubernetes
89     annotations:
90       gui-x: 500
91       gui-y: 100
92   lcm:
93     charm: "cs:~charmed-osm/lcm-0"
94     scale: 1
95     series: kubernetes
96     options:
97       database_commonkey: osm
98       log_level: DEBUG
99     annotations:
100       gui-x: -250
101       gui-y: 50
102   mon:
103     charm: "cs:~charmed-osm/mon-0"
104     scale: 1
105     series: kubernetes
106     options:
107       database_commonkey: osm
108       log_level: DEBUG
109     annotations:
110       gui-x: 250
111       gui-y: 50
112   pol:
113     charm: "cs:~charmed-osm/pol-0"
114     scale: 1
115     series: kubernetes
116     options:
117       log_level: DEBUG
118     annotations:
119       gui-x: -250
120       gui-y: 550
121   pla:
122     charm: "cs:~charmed-osm/pla-6"
123     scale: 1
124     series: kubernetes
125     options:
126       log_level: DEBUG
127     annotations:
128       gui-x: 500
129       gui-y: -200
130   prometheus:
131     charm: "cs:~charmed-osm/prometheus-0"
132     scale: 1
133     series: kubernetes
134     storage:
135       data: 50M
136     options:
137       default-target: "mon:8000"
138     annotations:
139       gui-x: 250
140       gui-y: 300
141   grafana:
142     charm: "cs:~charmed-osm/grafana-0"
143     scale: 1
144     series: kubernetes
145     annotations:
146       gui-x: 250
147       gui-y: 550
148   keystone:
149     charm: "cs:~charmed-osm/keystone-4"
150     scale: 1
151     series: kubernetes
152     annotations:
153       gui-x: -250
154       gui-y: 550
155 relations:
156   - - grafana:prometheus
157     - prometheus:prometheus
158   - - kafka-k8s:zookeeper
159     - zookeeper-k8s:zookeeper
160   - - keystone:db
161     - mariadb-k8s:mysql
162   - - lcm:kafka
163     - kafka-k8s:kafka
164   - - lcm:mongodb
165     - mongodb-k8s:mongo
166   - - ro:ro
167     - lcm:ro
168   - - ro:kafka
169     - kafka-k8s:kafka
170   - - ro:mongodb
171     - mongodb-k8s:mongo
172   - - pol:kafka
173     - kafka-k8s:kafka
174   - - pol:mongodb
175     - mongodb-k8s:mongo
176   - - mon:mongodb
177     - mongodb-k8s:mongo
178   - - mon:kafka
179     - kafka-k8s:kafka
180   - - pla:kafka
181     - kafka-k8s:kafka
182   - - pla:mongodb
183     - mongodb-k8s:mongo
184   - - nbi:mongodb
185     - mongodb-k8s:mongo
186   - - nbi:kafka
187     - kafka-k8s:kafka
188   - - nbi:prometheus
189     - prometheus:prometheus
190   - - nbi:keystone
191     - keystone:keystone
192   - - mon:prometheus
193     - prometheus:prometheus
194   - - ng-ui:nbi
195     - nbi:nbi