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