modified to add admin accross all deployment also adjust the unit
[joid.git] / ci / opencontrail / juju-deployer / contrail.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: 1
8       constraints: tags=control
9     nodes-compute:
10       charm: "cs:trusty/ubuntu"
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       series: precise
18       to:
19         - "lxc:nodes-api=0"
20     cassandra:
21       branch: lp:~stub/charms/trusty/cassandra/noauthentication
22       to:
23         - "lxc:nodes-api=0"
24       options:
25         authenticator: AllowAllAuthenticator
26   relations:
27     - - "ntp:juju-info"
28       - "nodes-api:juju-info"
29     - - "ntp:juju-info"
30       - "nodes-compute:juju-info"
31 openstack-phase2:
32   inherits: openstack-phase1
33   services:
34     "mysql":
35       charm: "cs:trusty/mysql"
36       num_units: 1
37       options:
38         "dataset-size": 2G
39         "max-connections": 10000
40       to:
41         - "lxc:nodes-api=0"
42     "mongodb":
43       charm: "cs:trusty/mongodb"
44       num_units: 1
45       to:
46         - "lxc:nodes-api=0"
47     "ceilometer":
48       branch: "lp:~openstack-charmers/charms/trusty/ceilometer/next"
49       num_units: 1
50       to:
51         - "lxc:nodes-api=0"
52     "ceilometer-agent":
53       branch: "lp:~openstack-charmers/charms/trusty/ceilometer-agent/next"
54     heat:
55       branch: "lp:~openstack-charmers/charms/trusty/heat/next"
56       to:
57         - "lxc:nodes-api=0"
58     ceph:
59       charm: cs:trusty/ceph
60       num_units: 1
61       options:
62         fsid: 5a791d94-980b-11e4-b6f6-3c970e8b1cf7
63         monitor-secret: AQAi5a9UeJXUExAA+By9u+GPhl8/XiUQ4nwI3A==
64         osd-devices: /srv
65         monitor-count: 1
66         osd-reformat: 'no'
67 #        ceph-cluster-network: 192.168.0.0/24
68 #        ceph-public-network: 192.168.0.0/24
69       to:
70         - "nodes-compute=0"
71 #        - "nodes-compute=1"
72 #    ceph-osd:
73 #      charm: cs:trusty/ceph-osd
74 #      num_units: 1
75 #      options:
76 #        osd-devices: /dev/sdb
77 #        osd-reformat: 'yes'
78 #      to:
79 #        - "lxc:nodes-api=0"
80 #    ceph-radosgw:
81 #      charm: cs:trusty/ceph-radosgw
82 #      num_units: 1
83 #      options:
84 #        use-embedded-webserver: true
85 #      to:
86 #        - "lxc:nodes-api=0"
87     cinder:
88       charm: cs:trusty/cinder
89       num_units: 1
90       options:
91         block-device: None
92         glance-api-version: 2
93 #        ha-mcastport: 5401
94       to:
95         - "lxc:nodes-api=0"
96     cinder-ceph:
97       charm: cs:trusty/cinder-ceph
98     "rabbitmq-server":
99       branch: lp:charms/trusty/rabbitmq-server
100       num_units: 1
101       to:
102         - "lxc:nodes-api=0"
103     "keystone":
104       branch: lp:charms/trusty/keystone
105       num_units: 1
106       options:
107         "admin-password": openstack
108         "admin-token": admin
109       to:
110         - "lxc:nodes-api=0"
111     "openstack-dashboard":
112       branch: lp:charms/trusty/openstack-dashboard
113       num_units: 1
114       options:
115         secret: admin
116         webroot: /
117       to:
118         - "lxc:nodes-api=0"
119     "nova-compute":
120       branch: lp:~openstack-charmers/charms/trusty/nova-compute/next
121       num_units: 1
122       options:
123         "manage-neutron-plugin-legacy-mode": False
124       to:
125         - "nodes-compute=0"
126 #        - "nodes-compute=1"
127     "nova-cloud-controller":
128       branch: lp:charms/trusty/nova-cloud-controller
129       num_units: 1
130       options:
131         "network-manager": Neutron
132       to:
133         - "lxc:nodes-api=0"
134     "neutron-api":
135       branch: lp:~openstack-charmers/charms/trusty/neutron-api/next
136       num_units: 1
137       options:
138         manage-neutron-plugin-legacy-mode: False
139       to:
140         - "lxc:nodes-api=0"
141     "glance":
142       branch: lp:charms/trusty/glance
143       num_units: 1
144       to:
145         - "lxc:nodes-api=0"
146   relations:
147     - [ keystone, mysql ]
148     - [ nova-cloud-controller, mysql ]
149     - [ nova-cloud-controller, rabbitmq-server ]
150     - [ nova-cloud-controller, glance ]
151     - [ nova-cloud-controller, keystone ]
152     - [ nova-compute, nova-cloud-controller ]
153     - [ "nova-compute:shared-db", "mysql:shared-db" ]
154     - [ "nova-compute:amqp", "rabbitmq-server:amqp" ]
155     - [ nova-compute, glance ]
156     - [ glance, mysql ]
157     - [ glance, keystone ]
158     - [ openstack-dashboard, keystone ]
159     - [ neutron-api, mysql ]
160     - [ neutron-api, rabbitmq-server ]
161     - [ neutron-api, nova-cloud-controller ]
162     - [ neutron-api, keystone ]
163     - [ neutron-api, neutron-api-contrail ]
164     - [ "ceilometer:amqp", "rabbitmq-server:amqp" ]
165     - [ "ceilometer-agent:ceilometer-service", "ceilometer:ceilometer-service" ]
166     - [ "ceilometer:identity-service", "keystone:identity-service" ]
167     - [ "ceilometer:identity-notifications", "keystone:identity-notifications" ]
168     - [ "ceilometer-agent:nova-ceilometer", "nova-compute:nova-ceilometer" ]
169     - [ "ceilometer:shared-db", "mongodb:database" ]
170     - [ "heat:shared-db", "mysql:shared-db" ]
171     - [ "heat:identity-service", "keystone:identity-service" ]
172     - [ "heat:amqp", "rabbitmq-server:amqp" ]
173     - [ "cinder:image-service", "glance:image-service" ]
174     - [ "cinder:amqp", "rabbitmq-server:amqp" ]
175     - [ "cinder:identity-service", "keystone:identity-service" ]
176     - [ "cinder:cinder-volume-service", "nova-cloud-controller:cinder-volume-service" ]
177     - [ "cinder-ceph:storage-backend", "cinder:storage-backend" ]
178     - [ "ceph:client", "nova-compute:ceph" ]
179     - [ "cinder:shared-db", "mysql:shared-db" ]
180     - [ "ceph:client", "cinder-ceph:ceph" ]
181     - [ "ceph:client", "glance:ceph" ]
182 contrail:
183   inherits: openstack-phase2
184   services:
185     contrail-configuration:
186       branch:  lp:~sdn-charmers/charms/trusty/contrail-configuration/trunk
187       to:
188         - "lxc:nodes-api=0"
189     contrail-control:
190       branch: lp:~sdn-charmers/charms/trusty/contrail-control/trunk
191       to:
192         - "lxc:nodes-api=0"
193     contrail-analytics:
194       branch: lp:~sdn-charmers/charms/trusty/contrail-analytics/trunk
195       to:
196         - "lxc:nodes-api=0"
197     contrail-webui:
198       branch: lp:~sdn-charmers/charms/trusty/contrail-webui/trunk
199       to:
200         - "lxc:nodes-api=0"
201     neutron-api-contrail:
202       branch: lp:~sdn-charmers/charms/trusty/neutron-api-contrail/trunk
203     neutron-contrail:
204       branch: lp:~sdn-charmers/charms/trusty/neutron-contrail/trunk
205   relations:
206     - [ "contrail-configuration:cassandra", "cassandra:database" ]
207     - [ contrail-configuration, zookeeper ]
208     - [ contrail-configuration, rabbitmq-server ]
209     - [ contrail-configuration, keystone ]
210     - [ neutron-api-contrail, contrail-configuration ]
211     - [ neutron-api-contrail, keystone ]
212     - [ "contrail-control:contrail-api", "contrail-configuration:contrail-api" ]
213     - [ "contrail-control:contrail-discovery", "contrail-configuration:contrail-discovery" ]
214     - [ "contrail-control:contrail-ifmap", "contrail-configuration:contrail-ifmap" ]
215     - [ contrail-control, keystone ]
216     - [ "contrail-analytics:cassandra", "cassandra:database" ]
217     - [ contrail-analytics, contrail-configuration ]
218     - [ contrail-webui, keystone ]
219     - [ "contrail-webui:contrail_api", "contrail-configuration:contrail-api" ]
220     - [ "contrail-webui:contrail_discovery", "contrail-configuration:contrail-discovery" ]
221     - [ "contrail-webui:cassandra", "cassandra:database" ]
222     - [ nova-compute, neutron-contrail ]
223     - [ "neutron-contrail:contrail-discovery", "contrail-configuration:contrail-discovery" ]
224     - [ "neutron-contrail:contrail-api", "contrail-configuration:contrail-api" ]
225     - [ neutron-contrail, keystone ]
226
227 trusty-liberty-nodes:
228   inherits: openstack-phase1
229   series: trusty
230   overrides:
231     series: trusty
232
233 trusty-liberty:
234   inherits: contrail
235   series: trusty
236   services:
237     mysql:
238       charm: cs:trusty/mysql
239     rabbitmq-server:
240       charm: cs:trusty/rabbitmq-server
241   overrides:
242     series: trusty
243     #os-data-network: 10.4.8.0/21
244     #prefer-ipv6: true
245     region: Canonical
246     openstack-origin: cloud:trusty-liberty
247     source: "cloud:trusty-liberty"
248     ceph-osd-replication-count: 1
249     admin-role: admin
250     keystone-admin-role: admin
251
252 trusty-kilo-nodes:
253   inherits: openstack-phase1
254   series: trusty
255   overrides:
256     series: trusty
257
258 trusty-kilo:
259   inherits: contrail
260   series: trusty
261   services:
262     mysql:
263       charm: cs:trusty/mysql
264     rabbitmq-server:
265       charm: cs:trusty/rabbitmq-server
266   overrides:
267     series: trusty
268     #os-data-network: 10.4.8.0/21
269     #prefer-ipv6: true
270     region: Canonical
271     openstack-origin: cloud:trusty-kilo
272     source: "cloud:trusty-kilo"
273     ceph-osd-replication-count: 1
274     admin-role: admin
275     keystone-admin-role: admin
276
277 trusty-juno-nodes:
278   inherits: openstack-phase1
279   overrides:
280     series: trusty
281
282 trusty-juno:
283   inherits: contrail
284   series: trusty
285   services:
286     mysql:
287       charm: cs:trusty/mysql
288     rabbitmq-server:
289       charm: cs:trusty/rabbitmq-server
290   overrides:
291     series: trusty
292     #os-data-network: 10.4.8.0/21
293     #prefer-ipv6: true
294     region: Canonical
295     openstack-origin: cloud:trusty-juno
296     source: "cloud:trusty-juno"
297     ceph-osd-replication-count: 1
298     admin-role: admin
299     keystone-admin-role: admin
300