added few more proxy, ntp and promise charm.
[joid.git] / ci / onos / juju-deployer / ovs-onos-ha.yaml
1 # vim: set ts=2 et:
2 trusty-mitaka-nodes:
3   inherits: openstack-phase1
4   overrides:
5     #os-data-network: 10.4.8.0/21
6     #ceph-cluster-network: 10.4.0.0/21
7     #prefer-ipv6: true
8     #enable-dvr: true
9     #l2-population: true
10     region: Canonical
11     #source: "cloud:trusty-mitaka"
12     openstack-origin: "cloud:trusty-mitaka"
13     #ceph-osd-replication-count: 2
14     admin-role: admin
15     keystone-admin-role: admin
16     #use-internal-endpoints: true
17     #os-public-hostname: pod.maas
18
19 trusty-mitaka:
20   inherits: openstack-phase2
21
22 openstack-phase1:
23   services:
24     nodes:
25       charm: "cs:trusty/ubuntu"
26       num_units: 5
27     ntp:
28       charm: "local:trusty/ntp"
29     mysql:
30       charm: "local:trusty/percona-cluster"
31       num_units: 3
32       options:
33         dataset-size: 2G
34         lp1366997-workaround: true
35         max-connections: 20000
36         root-password: 293rhc395m
37         sst-password: 127rc14t51
38         vip: 10.4.1.15
39       to:
40         - "lxc:nodes=1"
41         - "lxc:nodes=2"
42         - "lxc:nodes=3"
43     ceilometer:
44       charm: "local:trusty/ceilometer"
45       num_units: 3
46       options:
47         vip: 10.4.1.14
48       to:
49         - "lxc:nodes=2"
50         - "lxc:nodes=3"
51         - "lxc:nodes=4"
52     mongodb:
53       charm: "local:trusty/mongodb"
54       to:
55         - "lxc:nodes=0"
56     heat:
57       charm: "local:trusty/heat"
58       num_units: 3
59       options:
60         vip: 10.4.1.18
61       to:
62         - "lxc:nodes=3"
63         - "lxc:nodes=4"
64         - "lxc:nodes=0"
65     ceph:
66       charm: "local:trusty/ceph"
67       num_units: 3
68       options:
69         fsid: 5a791d94-980b-11e4-b6f6-3c970e8b1cf7
70         monitor-secret: AQAi5a9UeJXUExAA+By9u+GPhl8/XiUQ4nwI3A==
71         monitor-count: 3
72 #        osd-reformat: 'no'
73 #        ceph-cluster-network: 192.168.0.0/24
74 #        ceph-public-network: 192.168.0.0/24
75       to:
76         - "lxc:nodes=3"
77         - "lxc:nodes=4"
78         - "lxc:nodes=0"
79     ceph-osd:
80       charm: "local:trusty/ceph-osd"
81       num_units: 3
82       options:
83         osd-devices: /srv
84         osd-reformat: 'yes'
85       to:
86         - "nodes=2"
87         - "nodes=3"
88         - "nodes=4"
89     ceph-radosgw:
90       charm: "local:trusty/ceph-radosgw"
91       options:
92         use-embedded-webserver: true
93         operator-roles: "Member,admin"
94       to:
95         - "lxc:nodes=0"
96
97     cinder:
98       charm: "local:trusty/cinder"
99       num_units: 3
100       options:
101         vip: 10.4.1.19
102         block-device: None
103         glance-api-version: 2
104       to:
105         - "lxc:nodes=4"
106         - "lxc:nodes=0"
107         - "lxc:nodes=1"
108     rabbitmq-server:
109       charm: "local:trusty/rabbitmq-server"
110       num_units: 3
111       options:
112         vip: 10.4.1.10
113       to:
114         - "lxc:nodes=0"
115         - "lxc:nodes=1"
116         - "lxc:nodes=2"
117     keystone:
118       charm: "local:trusty/keystone"
119       num_units: 3
120       options:
121         admin-password: openstack
122         admin-token: admin
123         vip: 10.4.1.13
124       to:
125         - "lxc:nodes=1"
126         - "lxc:nodes=2"
127         - "lxc:nodes=3"
128     openstack-dashboard:
129       charm: "local:trusty/openstack-dashboard"
130       num_units: 3
131       options:
132         secret: admin
133         vip: 10.4.1.11
134         webroot: /
135         #endpoint-type: internalURL
136       to:
137         - "lxc:nodes=2"
138         - "lxc:nodes=3"
139         - "lxc:nodes=4"
140     nova-compute:
141       charm: local:trusty/nova-compute
142       num_units: 4
143       options:
144         enable-live-migration: true
145         enable-resize: true
146         manage-neutron-plugin-legacy-mode: false
147         migration-auth-type: ssh
148         #hugepages: "50%"
149         #virt-type: lxd``
150       to:
151         - "nodes=1"
152         - "nodes=2"
153         - "nodes=3"
154         - "nodes=4"
155     nova-cloud-controller:
156       charm: "local:trusty/nova-cloud-controller"
157       num_units: 3
158       options:
159         console-access-protocol: novnc
160         network-manager: Neutron
161         #service-guard: true
162         #console-proxy-ip: pod.maas
163         vip: 10.4.1.16
164       to:
165         - "lxc:nodes=3"
166         - "lxc:nodes=4"
167         - "lxc:nodes=0"
168     neutron-api:
169       charm: local:trusty/neutron-api
170       num_units: 3
171       options:
172         neutron-security-groups: True
173         flat-network-providers: "*"
174         manage-neutron-plugin-legacy-mode: False
175         vip: 10.4.1.17
176       to:
177         - "lxc:nodes=4"
178         - "lxc:nodes=0"
179         - "lxc:nodes=1"
180     neutron-gateway:
181       charm: "local:trusty/neutron-gateway"
182       options:
183         #ext-port: "eth1"
184         plugin: onos
185         instance-mtu: 1400
186       to:
187         - "nodes=0"
188     onos-controller:
189       charm: "local:trusty/onos-controller"
190       options:
191         #ext-port: "eth1"
192         #gateway-mac: "default"
193       to:
194         - "lxc:nodes=0"
195     glance:
196       charm: local:trusty/glance
197       num_units: 3
198       options:
199         vip: 10.4.1.12
200       to:
201         - "lxc:nodes=0"
202         - "lxc:nodes=1"
203         - "lxc:nodes=2"
204     opnfv-promise:
205       charm: local:trusty/promise
206       to:
207         - "lxc:nodes=0"
208     congress:
209       charm: local:trusty/congress
210       options:
211         #source-branch: stable/mitaka
212       to:
213         - "lxc:nodes=0"
214     hacluster-keystone:
215       charm: "local:trusty/hacluster"
216       options:
217         corosync_transport: unicast
218         cluster_count: 3
219     hacluster-horizon:
220       charm: "local:trusty/hacluster"
221       options:
222         corosync_transport: unicast
223         cluster_count: 3
224     hacluster-nova:
225       charm: "local:trusty/hacluster"
226       options:
227         corosync_transport: unicast
228         cluster_count: 3
229     hacluster-neutron:
230       charm: "local:trusty/hacluster"
231       options:
232         corosync_transport: unicast
233         cluster_count: 3
234     hacluster-glance:
235       charm: "local:trusty/hacluster"
236       options:
237         corosync_transport: unicast
238         cluster_count: 3
239     hacluster-ceilometer:
240       charm: "local:trusty/hacluster"
241       options:
242         corosync_transport: unicast
243         cluster_count: 3
244     hacluster-mysql:
245       charm: "local:trusty/hacluster"
246       options:
247         corosync_transport: unicast
248         cluster_count: 3
249     hacluster-heat:
250       charm: "local:trusty/hacluster"
251       options:
252         corosync_transport: unicast
253         cluster_count: 3
254     hacluster-cinder:
255       charm: "local:trusty/hacluster"
256       options:
257         corosync_transport: unicast
258         cluster_count: 3
259   relations:
260     - - "ntp:juju-info"
261       - "nodes:juju-info"
262     - - "mysql:ha"
263       - "hacluster-mysql:ha"
264     - - "glance:ha"
265       - "hacluster-glance:ha"
266     - - "keystone:ha"
267       - "hacluster-keystone:ha"
268     - - "neutron-api:ha"
269       - "hacluster-neutron:ha"
270     - - "nova-cloud-controller:ha"
271       - "hacluster-nova:ha"
272     - - "openstack-dashboard:ha"
273       - "hacluster-horizon:ha"
274     - - "ceilometer:ha"
275       - "hacluster-ceilometer:ha"
276     - - "heat:ha"
277       - "hacluster-heat:ha"
278     - - "cinder:ha"
279       - "hacluster-cinder:ha"
280
281 openstack-phase2:
282   inherits: openstack-phase1
283   relations:
284     - - "neutron-api:neutron-plugin-api-subordinate"
285       - "neutron-api-onos:neutron-plugin-api-subordinate"
286     - - "nova-compute:neutron-plugin"
287       - "openvswitch-onos:neutron-plugin"
288     - - "neutron-gateway"
289       - "openvswitch-onos"
290     - - "openvswitch-onos:ovsdb-manager"
291       - "onos-controller:ovsdb-manager"
292     - - "neutron-api-onos:onos-controller"
293       - "onos-controller:controller-api"
294     - - "keystone:shared-db"
295       - "mysql:shared-db"
296     - - "nova-cloud-controller:shared-db"
297       - "mysql:shared-db"
298     - - "nova-cloud-controller:amqp"
299       - "rabbitmq-server:amqp"
300     - - "nova-cloud-controller:image-service"
301       - "glance:image-service"
302     - - "nova-cloud-controller:identity-service"
303       - "keystone:identity-service"
304     - - "nova-cloud-controller:cloud-compute"
305       - "nova-compute:cloud-compute"
306     - - "nova-compute:amqp"
307       - "rabbitmq-server:amqp"
308     - - "nova-compute:image-service"
309       - "glance:image-service"
310     - - "glance:shared-db"
311       - "mysql:shared-db"
312     - - "glance:identity-service"
313       - "keystone:identity-service"
314     - - "glance:amqp"
315       - "rabbitmq-server:amqp"
316     - - "openstack-dashboard:identity-service"
317       - "keystone:identity-service"
318     - - "neutron-api:shared-db"
319       - "mysql:shared-db"
320     - - "neutron-api:amqp"
321       - "rabbitmq-server:amqp"
322     - - "nova-cloud-controller:neutron-api"
323       - "neutron-api:neutron-api"
324     - - "neutron-api:identity-service"
325       - "keystone:identity-service"
326     - - "neutron-gateway:amqp"
327       - "rabbitmq-server:amqp"
328     - - "neutron-gateway:neutron-plugin-api"
329       - "neutron-api:neutron-plugin-api"
330     - - "nova-cloud-controller:quantum-network-service"
331       - "neutron-gateway:quantum-network-service"
332     - - "ceilometer:amqp"
333       - "rabbitmq-server:amqp"
334     - - "ceilometer-agent:ceilometer-service"
335       - "ceilometer:ceilometer-service"
336     - - "ceilometer:identity-service"
337       - "keystone:identity-service"
338     - - "ceilometer:identity-notifications"
339       - "keystone:identity-notifications"
340     - - "ceilometer-agent:nova-ceilometer"
341       - "nova-compute:nova-ceilometer"
342     - - "ceilometer:shared-db"
343       - "mongodb:database"
344     - - "heat:shared-db"
345       - "mysql:shared-db"
346     - - "heat:identity-service"
347       - "keystone:identity-service"
348     - - "heat:amqp"
349       - "rabbitmq-server:amqp"
350     - - "cinder:image-service"
351       - "glance:image-service"
352     - - "cinder:amqp"
353       - "rabbitmq-server:amqp"
354     - - "cinder:identity-service"
355       - "keystone:identity-service"
356     - - "cinder:cinder-volume-service"
357       - "nova-cloud-controller:cinder-volume-service"
358     - - "cinder-ceph:storage-backend"
359       - "cinder:storage-backend"
360     - - "ceph:client"
361       - "nova-compute:ceph"
362     - - "cinder:shared-db"
363       - "mysql:shared-db"
364     - - "ceph:client"
365       - "cinder-ceph:ceph"
366     - - "ceph:client"
367       - "glance:ceph"
368     - - "ceph-osd:mon"
369       - "ceph:osd"
370     - - "ceph-radosgw:mon"
371       - "ceph:radosgw"
372     - - "ceph-radosgw:identity-service"
373       - "keystone:identity-service"
374     #- - nova-compute:lxd
375       #- lxd:lxd
376     - - congress:shared-db
377       - mysql:shared-db
378     - - congress:identity-service
379       - keystone:identity-service
380     - - congress:amqp
381       - rabbitmq-server:amqp
382   services:
383     ceilometer-agent:
384       charm: "local:trusty/ceilometer-agent"
385     cinder-ceph:
386       charm: "local:trusty/cinder-ceph"
387     openvswitch-onos:
388       charm: "local:trusty/openvswitch-onos"
389     neutron-api-onos:
390       charm: "local:trusty/neutron-api-onos"
391       options:
392         overlay-network-type: 'vxlan'
393         security-groups: True