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