5cb994995c4c3f485baf180aa21f1742813ad546
[joid.git] / ci / opencontrail / juju-deployer / contrail-ha.yaml
1 # vim: set ts=2 et:
2 openstack-phase1:
3   series: trusty
4   services:
5     nodes-api:
6       charm: "local:trusty/ubuntu-nodes-controller"
7       num_units: 3
8       constraints: tags=control
9     nodes-compute:
10       charm: "local:trusty/ubuntu-nodes-compute"
11       num_units: 1
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       charm: "cs:trusty/percona-cluster"
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     "rabbitmq-server": 
63       branch: lp:charms/trusty/rabbitmq-server
64       num_units: 3
65       to:
66         - "lxc:nodes-api=0"
67         - "lxc:nodes-api=1"
68         - "lxc:nodes-api=2"
69     "keystone": 
70       branch: lp:charms/trusty/keystone
71       num_units: 3
72       options: 
73         "admin-password": openstack
74         "admin-token": admin
75         vip: 10.4.1.13
76       to:
77         - "lxc:nodes-api=0"
78         - "lxc:nodes-api=1"
79         - "lxc:nodes-api=2"
80     "openstack-dashboard": 
81       branch: lp:charms/trusty/openstack-dashboard
82       num_units: 3
83       options: 
84         secret: admin
85         vip: 10.4.1.11
86         webroot: /
87       to:
88         - "lxc:nodes-api=0"
89         - "lxc:nodes-api=1"
90         - "lxc:nodes-api=2"
91     "nova-compute": 
92       branch: lp:~openstack-charmers/charms/trusty/nova-compute/next
93       num_units: 1
94       options: 
95         "enable-live-migration": False
96         "manage-neutron-plugin-legacy-mode": False
97       to:
98         - "nodes-compute=0"
99 #        - "nodes-compute=1"
100 #        - "nodes-api=0"
101 #        - "nodes-api=1"
102 #        - "nodes-api=2"
103     "nova-cloud-controller": 
104       branch: lp:charms/trusty/nova-cloud-controller
105       num_units: 3
106       options: 
107         "console-access-protocol": novnc
108         "network-manager": Neutron
109         "quantum-security-groups": "yes"
110         "service-guard": true
111         vip: 10.4.1.16
112       to:
113         - "lxc:nodes-api=0"
114         - "lxc:nodes-api=1"
115         - "lxc:nodes-api=2"
116     "neutron-api": 
117       branch: lp:~openstack-charmers/charms/trusty/neutron-api/next
118       num_units: 3
119       options:
120         neutron-security-groups: True
121         manage-neutron-plugin-legacy-mode: False
122         vip: 10.4.1.17
123       to: 
124         - "lxc:nodes-api=0"
125         - "lxc:nodes-api=1"
126         - "lxc:nodes-api=2"
127     "glance": 
128       branch: lp:charms/trusty/glance
129       num_units: 3
130       options: 
131         vip: 10.4.1.12
132       to:
133         - "lxc:nodes-api=0"
134         - "lxc:nodes-api=1"
135         - "lxc:nodes-api=2"
136   relations:
137     - [ "glance:ha", "hacluster-glance:ha" ]
138     - [ "keystone:ha", "hacluster-keystone:ha" ]
139     - [ "neutron-api:ha", "hacluster-neutron:ha" ]
140     - [ "nova-cloud-controller:ha", "hacluster-nova:ha" ]
141     - [ "openstack-dashboard:ha", "hacluster-horizon:ha" ]
142     - [ keystone, percona-cluster ]
143     - [ nova-cloud-controller, percona-cluster ]
144     - [ nova-cloud-controller, rabbitmq-server ]
145     - [ nova-cloud-controller, glance ]
146     - [ nova-cloud-controller, keystone ]
147     - [ nova-compute, nova-cloud-controller ]
148     - [ "nova-compute:shared-db", "percona-cluster:shared-db" ]
149     - [ "nova-compute:amqp", "rabbitmq-server:amqp" ]
150     - [ nova-compute, glance ]
151     - [ glance, percona-cluster ]
152     - [ glance, keystone ]
153     - [ openstack-dashboard, keystone ]
154     - [ neutron-api, percona-cluster ]
155     - [ neutron-api, rabbitmq-server ]
156     - [ neutron-api, nova-cloud-controller ]
157     - [ neutron-api, keystone ]
158     - [ neutron-api, neutron-api-contrail ]
159 contrail:
160   inherits: openstack-phase2
161   services:
162     cassandra:
163       branch: lp:~stub/charms/trusty/cassandra/noauthentication
164       num_units: 3
165       options:
166         authenticator: AllowAllAuthenticator
167       to:
168         - "lxc:nodes-api=0"
169         - "lxc:nodes-api=1"
170         - "lxc:nodes-api=2"
171     zookeeper:
172       branch: lp:~charmers/charms/precise/zookeeper/trunk
173       num_units: 3
174       series: precise
175       to:
176         - "lxc:nodes-api=0"
177         - "lxc:nodes-api=1"
178         - "lxc:nodes-api=2"
179       units: 3
180     contrail-configuration:
181       branch: lp:~sdn-charmers/charms/trusty/contrail-configuration/trunk
182       num_units: 2
183       options:
184         vip: 10.4.1.18
185       to:
186         - "lxc:nodes-api=0"
187         - "lxc:nodes-api=1"
188     contrail-control:
189       branch: lp:~sdn-charmers/charms/trusty/contrail-control/trunk
190       num_units: 2
191       to:
192         - "lxc:nodes-api=0"
193         - "lxc:nodes-api=1"
194     contrail-analytics:
195       branch: lp:~sdn-charmers/charms/trusty/contrail-analytics/trunk
196       num_units: 2
197       to:
198         - "lxc:nodes-api=0"
199         - "lxc:nodes-api=1"
200     contrail-webui:
201       branch: lp:~sdn-charmers/charms/trusty/contrail-webui/trunk
202       num_units: 2
203       to:
204         - "lxc:nodes-api=0"
205         - "lxc:nodes-api=1"
206     neutron-api-contrail:
207       branch: lp:~sdn-charmers/charms/trusty/neutron-api-contrail/trunk
208     neutron-contrail:
209       branch: lp:~sdn-charmers/charms/trusty/neutron-contrail/trunk
210     haproxy:
211       charm: cs:trusty/haproxy
212       num_units: 2
213       options:
214         peering_mode: active-active
215       to:
216         - "lxc:nodes-api=0"
217         - "lxc:nodes-api=1"
218     keepalived:
219       branch: lp:~sdn-charmers/charms/trusty/keepalived/trunk
220       options:
221         virtual-ip: 10.4.1.19
222   overrides:
223     admin-role: admin
224   relations:
225     - [ "contrail-configuration:cassandra", "cassandra:database" ]
226     - [ contrail-configuration, zookeeper ]
227     - [ contrail-configuration, rabbitmq-server ]
228     - [ contrail-configuration, keystone ]
229     - [ neutron-api-contrail, contrail-configuration ]
230     - [ neutron-api-contrail, keystone ]
231     - [ "contrail-control:contrail-api", "contrail-configuration:contrail-api" ]
232     - [ "contrail-control:contrail-discovery", "contrail-configuration:contrail-discovery" ]
233     - [ "contrail-control:contrail-ifmap", "contrail-configuration:contrail-ifmap" ]
234     - [ contrail-control, keystone ]
235     - [ "contrail-analytics:cassandra", "cassandra:database" ]
236     - [ contrail-analytics, contrail-configuration ]
237     - [ contrail-webui, keystone ]
238     - [ "contrail-webui:contrail_api", "contrail-configuration:contrail-api" ]
239     - [ "contrail-webui:contrail_discovery", "contrail-configuration:contrail-discovery" ]
240     - [ "contrail-webui:cassandra", "cassandra:database" ]
241     - [ nova-compute, neutron-contrail ]
242     - [ "neutron-contrail:contrail-discovery", "contrail-configuration:contrail-discovery" ]
243     - [ "neutron-contrail:contrail-api", "contrail-configuration:contrail-api" ]
244     - [ neutron-contrail, keystone ]
245     - [ contrail-configuration, haproxy ]
246     - [ contrail-analytics, haproxy ]
247     - [ contrail-webui, haproxy ]
248     - [ haproxy, keepalived ]
249 trusty-liberty-nodes:
250   inherits: openstack-phase1
251   series: trusty
252   overrides:
253     series: trusty
254     
255 trusty-liberty: 
256   inherits: contrail
257   series: trusty
258   overrides:
259     series: trusty
260     #os-data-network: 10.4.8.0/21
261     region: Canonical
262     openstack-origin: cloud:trusty-liberty
263
264 trusty-kilo-nodes:
265   inherits: openstack-phase1
266   series: trusty
267   overrides:
268     series: trusty
269
270 trusty-kilo:
271   inherits: contrail
272   series: trusty
273   overrides:
274     series: trusty
275     #os-data-network: 10.4.8.0/21
276     region: Canonical
277     openstack-origin: cloud:trusty-kilo
278
279 trusty-juno-nodes:
280   inherits: openstack-phase1
281   overrides:
282     series: trusty
283
284 trusty-juno:
285   inherits: contrail
286   series: trusty
287   overrides:
288     series: trusty
289     #os-data-network: 10.4.8.0/21
290     region: Canonical
291     openstack-origin: cloud:trusty-juno
292