modified to do fast deployment of bundle which saves time.
[joid.git] / ci / odl / juju-deployer / ovs-odl-ha.yaml
1 # vim: set ts=2 et:
2 openstack-phase1:
3   series: trusty
4   services:
5     nodes-api:
6       branch: "lp:charms/trusty/ubuntu"
7       num_units: 3
8       constraints: tags=control
9     nodes-compute:
10       branch: "lp:charms/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 #  overrides:
23   services: 
24     "percona-cluster": 
25       charm: "cs:trusty/percona-cluster"
26       num_units: 3
27       options: 
28         "dataset-size": 2G
29         "lp1366997-workaround": true
30         "max-connections": 10000
31         "root-password": 293rhc395m
32         "sst-password": 127rc14t51
33         vip: 10.4.1.15
34       to:
35         - "lxc:nodes-api=0"
36         - "lxc:nodes-api=1"
37         - "lxc:nodes-api=2"
38     "rabbitmq-server": 
39       charm: "cs:trusty/rabbitmq-server"
40       num_units: 3
41       options: 
42         management_plugin: true
43       to:
44         - "lxc:nodes-api=0"
45         - "lxc:nodes-api=1"
46         - "lxc:nodes-api=2"
47     "keystone": 
48       charm: "cs:trusty/keystone"
49       num_units: 3
50       options: 
51         "admin-password": openstack
52         "admin-token": admin
53         vip: 10.4.1.13
54       to:
55         - "lxc:nodes-api=0"
56         - "lxc:nodes-api=1"
57         - "lxc:nodes-api=2"
58     "openstack-dashboard": 
59       charm: "cs:trusty/openstack-dashboard"
60       num_units: 3
61       options: 
62         secret: admin
63         vip: 10.4.1.11
64         webroot: /
65       to:
66         - "lxc:nodes-api=0"
67         - "lxc:nodes-api=1"
68         - "lxc:nodes-api=2"
69     "nova-compute": 
70       charm: "cs:trusty/nova-compute"
71       num_units: 2
72       options: 
73         "enable-live-migration": true
74         "enable-resize": true
75         "migration-auth-type": ssh
76       to:
77         - "nodes-compute=0"
78         - "nodes-compute=1"
79 #        - "nodes-api=0"
80 #        - "nodes-api=1"
81 #        - "nodes-api=2"
82     "nova-cloud-controller": 
83       charm: "cs:trusty/nova-cloud-controller"
84       num_units: 3
85       options: 
86         "console-access-protocol": novnc
87         "network-manager": Neutron
88         "quantum-security-groups": "yes"
89         "service-guard": true
90         vip: 10.4.1.16
91       to:
92         - "lxc:nodes-api=0"
93         - "lxc:nodes-api=1"
94         - "lxc:nodes-api=2"
95     "neutron-api": 
96       branch: lp:~openstack-charmers/charms/trusty/neutron-api/next
97       num_units: 3
98       options:
99         neutron-security-groups: False
100         manage-neutron-plugin-legacy-mode: False
101         vip: 10.4.1.17
102       to: 
103         - "lxc:nodes-api=0"
104         - "lxc:nodes-api=1"
105         - "lxc:nodes-api=2"
106     neutron-gateway:
107       branch: lp:~sdn-charmers/charms/trusty/neutron-gateway/ovs-odl
108 #      constraints: tags=gateway
109       options:
110 #        "ext-port": eth1
111         plugin: ovs-odl
112 #        instance-mtu: 1400
113       to: nodes-api=0
114     odl-controller:
115       branch: lp:~sdn-charmers/charms/trusty/odl-controller/trunk
116       options:
117         install-url: "https://nexus.opendaylight.org/content/groups/public/org/opendaylight/integration/distribution-karaf/0.2.4-Helium-SR4/distribution-karaf-0.2.4-Helium-SR4.tar.gz"
118       to: lxc:nodes-api=1
119     "glance": 
120       charm: "cs:trusty/glance"
121       num_units: 3
122       options: 
123         vip: 10.4.1.12
124       to:
125         - "lxc:nodes-api=0"
126         - "lxc:nodes-api=1"
127         - "lxc:nodes-api=2"
128     neutron-api-odl:
129       branch: lp:~openstack-charmers/charms/trusty/neutron-api-odl/vpp
130       options:
131         overlay-network-type: 'vxlan gre'
132         security-groups: true
133     openvswitch-odl:
134       branch: lp:~alai/charms/trusty/openvswitch-odl/trunk
135 openstack-phase3:
136   inherits: openstack-phase2
137   overrides:
138     cluster_count: 3
139   services:
140     "hacluster-keystone": 
141       charm: "cs:trusty/hacluster"
142       options:
143         corosync_key: |
144           'QisjNpoKHLkvyc3PEdDHP5VZjgD0kOk9t0ABPWmCELlu5AgWgnW6bJd34BVXO7VhW+3ZwNQM3W+bZ3pl28ftY4ki4N/S0KLFNia5egFgiA3AH2QXLnokS7OYXuu6GMJJ1S5mDe6P5zU+tfJe/Mebq24u7CgR0gAvohSPRdDTwdY='
145     "hacluster-horizon": 
146       charm: "cs:trusty/hacluster"
147       options:
148         corosync_key: |
149           'aCVPHw6XYne+Hxv0WPiM3+yEfeIxs0Ly0EMKB494Rdzjf5rE52GcXqqxuvIa/nXJ4GCR+UdKk9FEwcASfYkeu3HDWUld9uTE6pOc+ibWYnybNH7VBfEHW8h9YmQKs3HD2T3wlTcS2irU4CUW7/IKNok4etYdM3iFn1K2ReSGXEI='
150     "hacluster-nova": 
151       charm: "cs:trusty/hacluster"
152       options:
153         corosync_key: |
154           'gel86qmEze8dYKYbfqIgRpqapJpKtdYL2hxC1y5nWYBPq7EMf6V8mF01IjeUkSRs14CUDrsPpT4PWeom7EOY2fleuLx/aIuqQUfEDkhf/gvaz7BaU4hrmTCoDBK7/HvEwY+/wu4qkEeckzSRPsm9MYzqnLRshh8yjZJ70xU/mmk='
155     "hacluster-neutron": 
156       charm: "cs:trusty/hacluster"
157       options:
158         corosync_key: |
159           'KNhb4++3jlllbnscS5D3qdzOJDsQPEeZ7zOLZJHbkKrRjX9gRCijVVOiv2JCvq03HqQ7LIufQzWGl9Za8qh0f6QmQ3XhFh/Cb/3WaYFj+tEf0zArWv+8miswmM1z4eyTSrTWBq0dTgx1z96wjBxP5HV0+1LWW+3Ei4oZWyRGeR0='
160     "hacluster-glance": 
161       charm: "cs:trusty/hacluster"
162       options:
163         corosync_key: |
164           'el1dd8107J5mwQDPS7tEJPZrr0XFfL95+Tku/QG90W5Q5f5SP4W8TRfKvddGmZWZl2lVd1neG5WqaHa1mq/aScJpoflzVAJCvshN7Gd2AjHhLNNugeI8S90j/7wrKUhqiCAlkKaeri2xs5bB5PZ7Z9AHuNZL7SW1al8lxrKhUFI='
165   relations:
166     - - "glance:ha"
167       - "hacluster-glance:ha"
168     - - "keystone:ha"
169       - "hacluster-keystone:ha"
170     - - "neutron-api:ha"
171       - "hacluster-neutron:ha"
172     - - "nova-cloud-controller:ha"
173       - "hacluster-nova:ha"
174     - - "openstack-dashboard:ha"
175       - "hacluster-horizon:ha"
176 openstack-phase4:
177   inherits: openstack-phase3
178   relations:
179     - - "nova-compute:amqp"
180       - "rabbitmq-server:amqp"
181     - - "neutron-gateway:amqp"
182       - "rabbitmq-server:amqp"
183     - - "nova-cloud-controller:identity-service"
184       - "keystone:identity-service"
185     - - "glance:identity-service"
186       - "keystone:identity-service"
187     - - "neutron-api:identity-service"
188       - "keystone:identity-service"
189     - - "neutron-api:amqp"
190       - "rabbitmq-server:amqp"
191     - - "neutron-gateway:neutron-plugin-api"
192       - "neutron-api:neutron-plugin-api"
193     - - "glance:amqp"
194       - "rabbitmq-server:amqp"
195     - - "nova-cloud-controller:image-service"
196       - "glance:image-service"
197     - - "nova-compute:image-service"
198       - "glance:image-service"
199     - - "nova-cloud-controller:cloud-compute"
200       - "nova-compute:cloud-compute"
201     - - "nova-cloud-controller:amqp"
202       - "rabbitmq-server:amqp"
203     - - "nova-cloud-controller:quantum-network-service"
204       - "neutron-gateway:quantum-network-service"
205     - - "openstack-dashboard:identity-service"
206       - "keystone:identity-service"
207     - - "nova-cloud-controller:neutron-api"
208       - "neutron-api:neutron-api"
209     - - "neutron-gateway:shared-db"
210       - "percona-cluster:shared-db"
211     - - "glance:shared-db"
212       - "percona-cluster:shared-db"
213     - - "keystone:shared-db"
214       - "percona-cluster:shared-db"
215     - - "nova-cloud-controller:shared-db"
216       - "percona-cluster:shared-db"
217     - - "neutron-api:shared-db"
218       - "percona-cluster:shared-db"
219     - - "neutron-api:neutron-plugin-api-subordinate"
220       - "neutron-api-odl:neutron-plugin-api-subordinate"
221     - - "nova-compute:neutron-plugin"
222       - "openvswitch-odl:neutron-plugin"
223     - - "neutron-gateway"
224       - "openvswitch-odl"
225     - - "openvswitch-odl:ovsdb-manager"
226       - "odl-controller:ovsdb-manager"
227     - - "neutron-api-odl:odl-controller"
228       - "odl-controller:controller-api"
229 trusty-liberty-nodes:
230   inherits: openstack-phase2
231   overrides:
232 #    os-data-network: 10.6.1.0/24
233     region: Canonical
234     source: "cloud:trusty-liberty"
235     "openstack-origin": "cloud:trusty-liberty"
236     series: trusty
237
238 trusty-liberty:
239   inherits: openstack-phase4
240
241 trusty-kilo-nodes:
242   inherits: openstack-phase2
243   overrides:
244 #    os-data-network: 10.6.1.0/24
245     region: Canonical
246     source: "cloud:trusty-kilo"
247     "openstack-origin": "cloud:trusty-kilo"
248     series: trusty
249
250 trusty-kilo:
251   inherits: openstack-phase4
252
253 trusty-juno:
254   inherits: openstack-phase2
255   overrides:
256 #    os-data-network: 10.6.1.0/24
257     region: Canonical
258     source: "cloud:trusty-juno"
259     "openstack-origin": "cloud:trusty-juno"
260     series: trusty
261