modified the ceph deployment for onos and opencontrail sdn.
[joid.git] / ci / opencontrail / juju-deployer / ovs-opencontrail-nonha.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: ""
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         - "lxc:nodes-api=0"
71     ceph-osd:
72       charm: cs:trusty/ceph-osd
73       num_units: 1
74       options:
75         osd-devices: /srv
76         osd-reformat: 'yes'
77       to:
78         - "nodes-compute=0"
79     ceph-radosgw:
80       charm: cs:trusty/ceph-radosgw
81       num_units: 1
82       options:
83         use-embedded-webserver: true
84       to:
85         - "lxc:nodes-api=0"
86     cinder:
87       charm: cs:trusty/cinder
88       num_units: 1
89       options:
90         block-device: None
91         glance-api-version: 2
92 #        ha-mcastport: 5401
93       to:
94         - "lxc:nodes-api=0"
95     cinder-ceph:
96       charm: cs:trusty/cinder-ceph
97     "rabbitmq-server":
98       branch: lp:charms/trusty/rabbitmq-server
99       num_units: 1
100       to:
101         - "lxc:nodes-api=0"
102     "keystone":
103       branch: lp:charms/trusty/keystone
104       num_units: 1
105       options:
106         "admin-password": openstack
107         "admin-token": admin
108       to:
109         - "lxc:nodes-api=0"
110     "openstack-dashboard":
111       branch: lp:charms/trusty/openstack-dashboard
112       num_units: 1
113       options:
114         secret: admin
115         webroot: /
116       to:
117         - "lxc:nodes-api=0"
118     "nova-compute":
119       branch: lp:~openstack-charmers/charms/trusty/nova-compute/next
120       num_units: 1
121       options:
122         "manage-neutron-plugin-legacy-mode": False
123       to:
124         - "nodes-compute=0"
125 #        - "nodes-compute=1"
126     "nova-cloud-controller":
127       branch: lp:charms/trusty/nova-cloud-controller
128       num_units: 1
129       options:
130         "network-manager": Neutron
131       to:
132         - "lxc:nodes-api=0"
133     "neutron-api":
134       branch: lp:~openstack-charmers/charms/trusty/neutron-api/next
135       num_units: 1
136       options:
137         manage-neutron-plugin-legacy-mode: False
138       to:
139         - "lxc:nodes-api=0"
140     "glance":
141       branch: lp:charms/trusty/glance
142       num_units: 1
143       to:
144         - "lxc:nodes-api=0"
145     opnfv-promise:
146       branch: lp:~narindergupta/charms/trusty/promise/trunk
147       num_units: 1
148       to:
149         - "lxc:nodes-api=0"
150   relations:
151     - [ keystone, mysql ]
152     - [ nova-cloud-controller, mysql ]
153     - [ nova-cloud-controller, rabbitmq-server ]
154     - [ nova-cloud-controller, glance ]
155     - [ nova-cloud-controller, keystone ]
156     - [ nova-compute, nova-cloud-controller ]
157     - [ "nova-compute:shared-db", "mysql:shared-db" ]
158     - [ "nova-compute:amqp", "rabbitmq-server:amqp" ]
159     - [ nova-compute, glance ]
160     - [ glance, mysql ]
161     - [ glance, keystone ]
162     - [ openstack-dashboard, keystone ]
163     - [ neutron-api, mysql ]
164     - [ neutron-api, rabbitmq-server ]
165     - [ neutron-api, nova-cloud-controller ]
166     - [ neutron-api, keystone ]
167     - [ neutron-api, neutron-api-contrail ]
168     - [ "ceilometer:amqp", "rabbitmq-server:amqp" ]
169     - [ "ceilometer-agent:ceilometer-service", "ceilometer:ceilometer-service" ]
170     - [ "ceilometer:identity-service", "keystone:identity-service" ]
171     - [ "ceilometer:identity-notifications", "keystone:identity-notifications" ]
172     - [ "ceilometer-agent:nova-ceilometer", "nova-compute:nova-ceilometer" ]
173     - [ "ceilometer:shared-db", "mongodb:database" ]
174     - [ "heat:shared-db", "mysql:shared-db" ]
175     - [ "heat:identity-service", "keystone:identity-service" ]
176     - [ "heat:amqp", "rabbitmq-server:amqp" ]
177     - [ "cinder:image-service", "glance:image-service" ]
178     - [ "cinder:amqp", "rabbitmq-server:amqp" ]
179     - [ "cinder:identity-service", "keystone:identity-service" ]
180     - [ "cinder:cinder-volume-service", "nova-cloud-controller:cinder-volume-service" ]
181     - [ "cinder-ceph:storage-backend", "cinder:storage-backend" ]
182     - [ "ceph:client", "nova-compute:ceph" ]
183     - [ "cinder:shared-db", "mysql:shared-db" ]
184     - [ "ceph:client", "cinder-ceph:ceph" ]
185     - [ "ceph:client", "glance:ceph" ]
186     - [ "ceph-osd:mon", "ceph:osd" ]
187     - [ "ceph-radosgw:mon", "ceph:radosgw" ]
188     - [ "ceph-radosgw:identity-service", "keystone:identity-service"]
189 contrail:
190   inherits: openstack-phase2
191   services:
192     contrail-configuration:
193       branch:  lp:~sdn-charmers/charms/trusty/contrail-configuration/trunk
194       to:
195         - "lxc:nodes-api=0"
196     contrail-control:
197       branch: lp:~sdn-charmers/charms/trusty/contrail-control/trunk
198       to:
199         - "lxc:nodes-api=0"
200     contrail-analytics:
201       branch: lp:~sdn-charmers/charms/trusty/contrail-analytics/trunk
202       to:
203         - "lxc:nodes-api=0"
204     contrail-webui:
205       branch: lp:~sdn-charmers/charms/trusty/contrail-webui/trunk
206       to:
207         - "lxc:nodes-api=0"
208     neutron-api-contrail:
209       branch: lp:~sdn-charmers/charms/trusty/neutron-api-contrail/trunk
210     neutron-contrail:
211       branch: lp:~sdn-charmers/charms/trusty/neutron-contrail/trunk
212   relations:
213     - [ "contrail-configuration:cassandra", "cassandra:database" ]
214     - [ contrail-configuration, zookeeper ]
215     - [ contrail-configuration, rabbitmq-server ]
216     - [ contrail-configuration, keystone ]
217     - [ neutron-api-contrail, contrail-configuration ]
218     - [ neutron-api-contrail, keystone ]
219     - [ "contrail-control:contrail-api", "contrail-configuration:contrail-api" ]
220     - [ "contrail-control:contrail-discovery", "contrail-configuration:contrail-discovery" ]
221     - [ "contrail-control:contrail-ifmap", "contrail-configuration:contrail-ifmap" ]
222     - [ contrail-control, keystone ]
223     - [ "contrail-analytics:cassandra", "cassandra:database" ]
224     - [ contrail-analytics, contrail-configuration ]
225     - [ contrail-webui, keystone ]
226     - [ "contrail-webui:contrail_api", "contrail-configuration:contrail-api" ]
227     - [ "contrail-webui:contrail_discovery", "contrail-configuration:contrail-discovery" ]
228     - [ "contrail-webui:cassandra", "cassandra:database" ]
229     - [ nova-compute, neutron-contrail ]
230     - [ "neutron-contrail:contrail-discovery", "contrail-configuration:contrail-discovery" ]
231     - [ "neutron-contrail:contrail-api", "contrail-configuration:contrail-api" ]
232     - [ neutron-contrail, keystone ]
233
234 trusty-liberty-nodes:
235   inherits: openstack-phase1
236   series: trusty
237   overrides:
238     series: trusty
239
240 trusty-liberty:
241   inherits: contrail
242   series: trusty
243   services:
244     mysql:
245       charm: cs:trusty/mysql
246     rabbitmq-server:
247       charm: cs:trusty/rabbitmq-server
248   overrides:
249     series: trusty
250     #os-data-network: 10.4.8.0/21
251     #ceph-cluster-network: 10.4.0.0/21
252     #prefer-ipv6: true
253     region: Canonical
254     openstack-origin: cloud:trusty-liberty
255     source: "cloud:trusty-liberty"
256     ceph-osd-replication-count: 1
257     admin-role: admin
258     keystone-admin-role: admin
259
260 trusty-kilo-nodes:
261   inherits: openstack-phase1
262   series: trusty
263   overrides:
264     series: trusty
265
266 trusty-kilo:
267   inherits: contrail
268   series: trusty
269   services:
270     mysql:
271       charm: cs:trusty/mysql
272     rabbitmq-server:
273       charm: cs:trusty/rabbitmq-server
274   overrides:
275     series: trusty
276     #os-data-network: 10.4.8.0/21
277     #ceph-cluster-network: 10.4.0.0/21
278     #prefer-ipv6: true
279     region: Canonical
280     openstack-origin: cloud:trusty-kilo
281     source: "cloud:trusty-kilo"
282     ceph-osd-replication-count: 1
283     admin-role: admin
284     keystone-admin-role: admin
285
286 trusty-juno-nodes:
287   inherits: openstack-phase1
288   overrides:
289     series: trusty
290
291 trusty-juno:
292   inherits: contrail
293   series: trusty
294   services:
295     mysql:
296       charm: cs:trusty/mysql
297     rabbitmq-server:
298       charm: cs:trusty/rabbitmq-server
299   overrides:
300     series: trusty
301     #os-data-network: 10.4.8.0/21
302     #ceph-cluster-network: 10.4.0.0/21
303     #prefer-ipv6: true
304     region: Canonical
305     openstack-origin: cloud:trusty-juno
306     source: "cloud:trusty-juno"
307     ceph-osd-replication-count: 1
308     admin-role: admin
309     keystone-admin-role: admin
310