1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
|
series: trusty
services:
ubuntu:
charm: cs:trusty/ubuntu
num_units: 3
to: [ "1", "2", "3" ]
ntp:
charm: cs:trusty/ntp
num_units: 0
options:
source: ntp.juniper.net
mysql:
charm: cs:trusty/percona-cluster
options:
dataset-size: 15%
max-connections: 10000
root-password: password
sst-password: password
vip: 192.168.1.240
vip_cidr: 24
num_units: 3
to: [ "lxd:1", "lxd:2", "lxd:3" ]
rabbitmq-server:
charm: cs:trusty/rabbitmq-server
num_units: 3
to: [ "lxd:1", "lxd:2", "lxd:3" ]
keystone:
charm: cs:trusty/keystone
options:
admin-password: password
admin-role: admin
openstack-origin: cloud:trusty-mitaka
vip: 192.168.1.241
vip_cidr: 24
num_units: 3
to: [ "lxd:1", "lxd:2", "lxd:3" ]
nova-cloud-controller:
charm: cs:trusty/nova-cloud-controller
options:
network-manager: Neutron
openstack-origin: cloud:trusty-mitaka
vip: 192.168.1.242
vip_cidr: 24
num_units: 3
to: [ "lxd:1", "lxd:2", "lxd:3" ]
neutron-api:
charm: cs:trusty/neutron-api
options:
manage-neutron-plugin-legacy-mode: false
openstack-origin: cloud:trusty-mitaka
vip: 192.168.1.243
vip_cidr: 24
num_units: 3
to: [ "lxd:1", "lxd:2", "lxd:3" ]
glance:
charm: cs:trusty/glance
options:
openstack-origin: cloud:trusty-mitaka
vip: 192.168.1.244
vip_cidr: 24
num_units: 3
to: [ "lxd:1", "lxd:2", "lxd:3" ]
openstack-dashboard:
charm: cs:trusty/openstack-dashboard
options:
openstack-origin: cloud:trusty-mitaka
vip: 192.168.1.245
vip_cidr: 24
num_units: 3
to: [ "lxd:1", "lxd:2", "lxd:3" ]
nova-compute:
charm: cs:trusty/nova-compute
options:
openstack-origin: cloud:trusty-mitaka
num_units: 3
to: [ "4", "5", "6" ]
mysql-hacluster:
charm: cs:trusty/hacluster
options:
cluster_count: 3
num_units: 0
keystone-hacluster:
charm: cs:trusty/hacluster
options:
cluster_count: 3
num_units: 0
ncc-hacluster:
charm: cs:trusty/hacluster
options:
cluster_count: 3
num_units: 0
neutron-hacluster:
charm: cs:trusty/hacluster
options:
cluster_count: 3
num_units: 0
glance-hacluster:
charm: cs:trusty/hacluster
options:
cluster_count: 3
num_units: 0
dashboard-hacluster:
charm: cs:trusty/hacluster
options:
cluster_count: 3
num_units: 0
contrail-openstack:
charm: ./contrail-openstack
series: trusty
num_units: 0
options:
install-keys: |
- |
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1
mQENBFZDkpsBCAC+T+UOOLUky331HZk8RbfF7mQ35nwH1PGl2vHM6RWdqayLK4aV
1uUNGzI3UJw0YVCMmqJSlNfU58GhxEZ/cRbVjnZ6ebAIWRGepsMYWDlA960ornnL
VCRbr6yvHU06MSS8yl0X43QL2yGdBRiC5EAPEAawDOTMk0RxJ1AvMDHmnKommoQG
MWJ5zKL+fYSiNEPxQ2/nYd2jVXK4a1jP8c4LcvMdo8uxrEHklr/81wX+UKZYzuZP
bWQmiXiZzhQD2qz7IgZDaBKVEH4b2xMjilaPc2JOH0hHdP0M33PUOvCbpXQAYOok
kzqFpglZq1mZmM1ba6x37E07YpOvNWN0kE9DABEBAAG0CENvbnRyYWlsiQE4BBMB
AgAiBQJWQ5KbAhsDBgsJCAcDAgYVCAIJCgsEFgIDAQIeAQIXgAAKCRBmWWjLMSv5
wDrYB/4nMGcDVFRGU4tvIykhu/l6J6uNunpACL5HrdxC93PrThB2EgJXgnPpE/O+
KtjN2JKkSs4ehQy0wRMHc1eM/pQ1GRw4QV6vxO1FPT+y8BMdYkuwqd3uM22wg9mZ
yKvLtWBhMEu9nAPsTSVaT7Yw1z319Nr7JP+0mRCmlkLjuQUF2RcMwH59XH+8Lpev
MJEGdDcwWifPiO83ycBTQ760miz4B4inUWLYZ11lW/tXRSNG+o4QjemF5mWbPO+H
knwC/9eukDath9q7itLbJsDbam0/2KCTPxly1sk6E9hCNSIxlNT6ZnnnorLUoSqH
cTfEFYBDWmyhtqzHcfqocnBaPZT8
=rMS6
-----END PGP PUBLIC KEY BLOCK-----
install-sources: |
- "deb http://192.168.1.1:8080/contrail-openstack-neutron-api-pkgs/3065 /"
contrail-agent:
charm: ./contrail-agent
series: trusty
num_units: 0
options:
install-keys: |
- |
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1
mQENBFZDkpsBCAC+T+UOOLUky331HZk8RbfF7mQ35nwH1PGl2vHM6RWdqayLK4aV
1uUNGzI3UJw0YVCMmqJSlNfU58GhxEZ/cRbVjnZ6ebAIWRGepsMYWDlA960ornnL
VCRbr6yvHU06MSS8yl0X43QL2yGdBRiC5EAPEAawDOTMk0RxJ1AvMDHmnKommoQG
MWJ5zKL+fYSiNEPxQ2/nYd2jVXK4a1jP8c4LcvMdo8uxrEHklr/81wX+UKZYzuZP
bWQmiXiZzhQD2qz7IgZDaBKVEH4b2xMjilaPc2JOH0hHdP0M33PUOvCbpXQAYOok
kzqFpglZq1mZmM1ba6x37E07YpOvNWN0kE9DABEBAAG0CENvbnRyYWlsiQE4BBMB
AgAiBQJWQ5KbAhsDBgsJCAcDAgYVCAIJCgsEFgIDAQIeAQIXgAAKCRBmWWjLMSv5
wDrYB/4nMGcDVFRGU4tvIykhu/l6J6uNunpACL5HrdxC93PrThB2EgJXgnPpE/O+
KtjN2JKkSs4ehQy0wRMHc1eM/pQ1GRw4QV6vxO1FPT+y8BMdYkuwqd3uM22wg9mZ
yKvLtWBhMEu9nAPsTSVaT7Yw1z319Nr7JP+0mRCmlkLjuQUF2RcMwH59XH+8Lpev
MJEGdDcwWifPiO83ycBTQ760miz4B4inUWLYZ11lW/tXRSNG+o4QjemF5mWbPO+H
knwC/9eukDath9q7itLbJsDbam0/2KCTPxly1sk6E9hCNSIxlNT6ZnnnorLUoSqH
cTfEFYBDWmyhtqzHcfqocnBaPZT8
=rMS6
-----END PGP PUBLIC KEY BLOCK-----
install-sources: |
- "deb http://192.168.1.1:8080/contrail-openstack-neutron-api-pkgs/3065 /"
contrail-analytics:
charm: ./contrail-analytics
series: trusty
num_units: 3
to: [ "1", "2", "3" ]
contrail-analyticsdb:
charm: ./contrail-analyticsdb
series: trusty
num_units: 3
to: [ "1", "2", "3" ]
contrail-controller:
charm: ./contrail-controller
series: trusty
num_units: 3
to: [ "1", "2", "3" ]
contrail-keystone-auth:
charm: ./contrail-keystone-auth
series: trusty
num_units: 1
to: [ "lxd:1" ]
relations:
# openstack
- [ "ubuntu", "ntp" ]
- [ mysql, mysql-hacluster ]
- [ "keystone", "mysql" ]
- [ keystone, keystone-hacluster ]
- [ "glance", "mysql" ]
- [ "glance", "keystone" ]
- [ glance, glance-hacluster ]
- [ "nova-cloud-controller", "mysql" ]
- [ "nova-cloud-controller", "rabbitmq-server" ]
- [ "nova-cloud-controller", "keystone" ]
- [ "nova-cloud-controller", "glance" ]
- [ nova-cloud-controller, ncc-hacluster ]
- [ "neutron-api", "mysql" ]
- [ "neutron-api", "rabbitmq-server" ]
- [ "neutron-api", "nova-cloud-controller" ]
- [ "neutron-api", "keystone" ]
- [ neutron-api, neutron-hacluster ]
- [ "nova-compute:shared-db", "mysql:shared-db" ]
- [ "nova-compute:amqp", "rabbitmq-server:amqp" ]
- [ "nova-compute", "glance" ]
- [ "nova-compute", "nova-cloud-controller" ]
- [ "nova-compute", "ntp" ]
- [ "openstack-dashboard", "keystone" ]
- [ openstack-dashboard, dashboard-hacluster ]
#contrail
- [ "contrail-keystone-auth", "keystone" ]
- [ "contrail-controller", "contrail-keystone-auth" ]
- [ "contrail-analytics", "contrail-analyticsdb" ]
- [ "contrail-controller", "contrail-analytics" ]
- [ "contrail-controller", "contrail-analyticsdb" ]
- [ "contrail-openstack", "nova-compute" ]
- [ "contrail-openstack", "neutron-api" ]
- [ "contrail-openstack", "contrail-controller" ]
- [ "contrail-agent:juju-info", "nova-compute:juju-info" ]
- [ "contrail-agent", "contrail-controller"]
machines:
"1":
series: trusty
#constraints: mem=15G root-disk=40G
constraints: tags=contrail-controller-vm-1
"2":
series: trusty
#constraints: mem=15G root-disk=40G
constraints: tags=contrail-controller-vm-2
"3":
series: trusty
#constraints: mem=15G root-disk=40G
constraints: tags=contrail-controller-vm-3
"4":
series: trusty
#constraints: mem=4G root-disk=20G
constraints: tags=compute-storage-1
"5":
series: trusty
#constraints: mem=4G root-disk=20G
constraints: tags=compute-storage-2
"6":
series: trusty
#constraints: mem=4G root-disk=20G
constraints: tags=compute-storage-3
|