~narindergupta/opnfv/stable-R2

« back to all changes in this revision

Viewing changes to ci/opencontrail/juju-deployer/contrail-ha.yaml

  • Committer: zhangyuanyou
  • Date: 2016-01-02 08:55:55 UTC
  • Revision ID: git-v1:9d5ca8b6a6c9e33a5f8318483ad940eb9918819d
JOID-18 Juju integration with ONOSFW.

Change-Id: Iaffdb78ceb5a4c1a57fce3459289c65d6b6a4f42

Show diffs side-by-side

added added

removed removed

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