forked from open-power-ref-design/dbaas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yml
478 lines (471 loc) · 13.9 KB
/
config.yml
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
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
---
# Copyright 2016,2017 IBM Corp.
#
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# This file describes the configuration for a Database as a Service (DBaaS),
# build on top of a private compute cloud.
# It features three controller nodes, compute nodes, and Ceph OSD nodes.
# It also contains a Swift cluster with the Swift proxy on the controller
# nodes, and the account, container, and object rings converged on the same
# set of nodes.
version: 1.1
reference-architecture:
- private-compute-cloud
- dbaas
- swift
- swift-minimum-hardware
ipaddr-mgmt-network: 192.168.16.0/24
ipaddr-mgmt-client-network: 192.168.20.0/24
vlan-mgmt-network: 16
vlan-mgmt-client-network: 20
port-mgmt-network: 46
port-mgmt-data-network:
rack1:
- 45
- 47
ipaddr-mgmt-switch:
rack1: 192.168.16.20
cidr-mgmt-switch-external-dev: 192.168.32.2/24
ipaddr-mgmt-switch-external:
rack1: 192.168.32.20
ipaddr-data-switch:
rack1:
- 192.168.16.25
- 192.168.16.30
ipaddr-mlag-vip:
_rack1: 192.168.16.254
cidr-mlag-ipl:
_rack1:
- 10.0.0.1/24
- 10.0.0.2/24
mlag-vlan:
_rack1: 4000
mlag-port-channel:
_rack1: 35
mlag-ipl-ports:
_rack1:
-
- 35
- 36
-
- 35
- 36
redundant-network: true
userid-default: ubuntu
password-default: passw0rd
userid-mgmt-switch: admin # applied to all mgmt switches
password-mgmt-switch: admin # applied to all mgmt switches
userid-data-switch: admin
password-data-switch: admin
internal-floating-ipaddr: 172.29.236.50
external-floating-ipaddr: 10.0.16.50
networks:
ext1:
description: Interface for eth10
method: manual
eth-port: eth10
mtu: 9000
ext2:
description: Interface for eth11
method: manual
eth-port: eth11
mtu: 9000
ext3:
description: Interface for eth12
method: manual
eth-port: eth12
mtu: 9000
ext4:
description: Interface for eth13
method: manual
eth-port: eth13
mtu: 9000
pxe-dhcp:
description: Change pxe port(eth15) to dhcp
method: dhcp
eth-port: eth15
external1:
description: bonded public interface
bond: osbond0
addr: 10.0.16.0/22
# Note you can uncomment the following section to provide a set of IPs
# on this network that will be allocated to the hosts. The default
# behavior is to allocate from the full subnet.
#available-ips:
# - 10.0.16.20
# - 10.0.16.35
# - 10.0.16.106 10.0.16.110 # this is an IP range
# - 10.0.16.115
broadcast: 10.0.19.255
gateway: 10.0.16.1
#dns-nameservers: 10.0.16.200
#dns-search: mycompany.domain.com
method: static
bond-interfaces:
# for full protection against failure, eth10 and eth11 should come from different NICs
- eth10
- eth11
mtu: 9000
bond-primary: eth10
bond-mode: 4
optional-bond-arguments:
bond-miimon: 100
bond-lacp-rate: 1
external2:
description: bonded interface
bond: osbond1
method: manual
bond-interfaces:
# for full protection against failure, eth12 and eth13 should come from different NICs
- eth12
- eth13
mtu: 9000
bond-primary: eth12
bond-mode: 4
optional-bond-arguments:
bond-miimon: 100
bond-lacp-rate: 1
openstack-mgmt:
description: OpenStack Management Network
bridge: br-mgmt
method: static
tcp_segmentation_offload: 'off'
addr: 172.29.236.0/22
vlan: 10
eth-port: osbond0
mtu: 9000
# This bridge port allows the DBaaS/Trove agent in the tenant DB VMs
# to communicate on the infrastructure network.
bridge-port: veth-infra
openstack-stg:
description: OpenStack Storage Network
bridge: br-storage
method: static
tcp_segmentation_offload: 'off'
addr: 172.29.244.0/22
vlan: 20
eth-port: osbond0
mtu: 9000
openstack-tenant-vxlan:
description: OpenStack Tenant vxlan Network
bridge: br-vxlan
method: static
addr: 172.29.240.0/22
vlan: 30
eth-port: osbond1
mtu: 9000
openstack-tenant-vlan:
description: OpenStack Tenant vlan Network
bridge: br-vlan
method: static
addr: 0.0.0.0/32 # Nodes do not get IPs assigned in this network
eth-port: osbond1
bridge-port: veth12
mtu: 9000
ceph-replication:
description: Ceph Replication Network
addr: 172.29.248.0/22
bridge: br-replication
method: static
vlan: 40
eth-port: osbond1
mtu: 9000
swift-replication:
description: Swift Replication Network
addr: 172.29.252.0/22
bridge: br-swift-repl
method: static
vlan: 50
eth-port: osbond1
mtu: 9000
racks:
- rack-id: rack1
data-center: dataeast
room: room33
row: row1
node-templates:
controllers:
hostname: controller
roles:
- solution_keys
- solution_inventory
userid-ipmi: admin
password-ipmi: admin
cobbler-profile: ubuntu-16.04.1-server-ppc64el
name-interfaces:
mac-pxe: eth15
mac-eth10: eth10
mac-eth11: eth11
mac-eth12: eth12
mac-eth13: eth13
# Each host has one network interface for each of these ports and
# these port numbers represent the switch port number to which the host
# interface is cabled. If a port can be broken out using breakout
# cables, then this would be specified as '- <port>/<sub-port>'.
# To add or remove hosts for this node-template you add or remove
# switch port numbers to these ports.
ports:
pxe:
rack1:
- 1
- 2
- 3
ipmi:
rack1:
- 4
- 5
- 6
eth10: # for MLAG setup, these connect to 1st data switch
rack1:
- 1
- 2
- 3
eth11: # for MLAG setup, these connect to 2nd data switch
rack1:
- 1
- 2
- 3
eth12: # for MLAG setup, these connect to 1st data switch
rack1:
- 4
- 5
- 6
eth13: # for MLAG setup, these connect to 2nd data switch
rack1:
- 4
- 5
- 6
networks:
- ext1
- ext2
- ext3
- ext4
- external1
- external2
- openstack-mgmt
- openstack-stg
- openstack-tenant-vlan
- openstack-tenant-vxlan
- pxe-dhcp
compute:
hostname: compute
roles:
- solution_keys
userid-ipmi: admin
password-ipmi: admin
cobbler-profile: ubuntu-16.04.1-server-ppc64el
name-interfaces:
mac-pxe: eth15
mac-eth10: eth10
mac-eth11: eth11
mac-eth12: eth12
mac-eth13: eth13
# Each host has one network interface for each of these ports and
# these port numbers represent the switch port number to which the host
# interface is cabled. If a port can be broken out using breakout
# cables, then this would be specified as '- <port>/<sub-port>'.
# To add or remove hosts for this node-template you add or remove
# switch port numbers to these ports.
ports:
pxe:
rack1:
- 7
- 8
- 9
ipmi:
rack1:
- 10
- 11
- 12
eth10:
rack1:
- 7
- 8
- 9
eth11:
rack1:
- 7
- 8
- 9
eth12:
rack1:
- 10
- 11
- 12
eth13:
rack1:
- 10
- 11
- 12
networks:
- ext1
- ext2
- ext3
- ext4
- external1
- external2
- openstack-mgmt
- openstack-stg
- openstack-tenant-vlan
- openstack-tenant-vxlan
- pxe-dhcp
ceph-osd:
hostname: cephosd
userid-ipmi: admin
password-ipmi: admin
cobbler-profile: ubuntu-16.04.1-server-ppc64el
name-interfaces:
mac-pxe: eth15
mac-eth10: eth10
mac-eth11: eth11
mac-eth12: eth12
mac-eth13: eth13
# Each host has one network interface for each of these ports and
# these port numbers represent the switch port number to which the host
# interface is cabled. If a port can be broken out using breakout
# cables, then this would be specified as '- <port>/<sub-port>'.
# To add or remove hosts for this node-template you add or remove
# switch port numbers to these ports.
ports:
pxe:
rack1:
- 13
- 14
- 15
ipmi:
rack1:
- 16
- 17
- 18
eth10:
rack1:
- 13
- 14
- 15
eth11:
rack1:
- 13
- 14
- 15
eth12:
rack1:
- 16
- 17
- 18
eth13:
rack1:
- 16
- 17
- 18
networks:
- ext1
- ext2
- ext3
- ext4
- external1
- external2
- openstack-mgmt
- openstack-stg
- ceph-replication
- pxe-dhcp
domain-settings:
journal-devices:
- /dev/sdc
- /dev/sdd
osd-devices:
- /dev/sde
- /dev/sdf
- /dev/sdg
- /dev/sdh
swift-object:
hostname: swiftobj
userid-ipmi: admin
password-ipmi: admin
cobbler-profile: ubuntu-16.04.1-server-ppc64el
name-interfaces:
mac-pxe: eth15
mac-eth10: eth10
mac-eth11: eth11
mac-eth12: eth12
mac-eth13: eth13
# Each host has one network interface for each of these ports and
# these port numbers represent the switch port number to which the host
# interface is cabled. If a port can be broken out using breakout
# cables, then this would be specified as '- <port>/<sub-port>'.
# To add or remove hosts for this node-template you add or remove
# switch port numbers to these ports.
ports:
pxe:
rack1:
- 19
- 20
- 21
ipmi:
rack1:
- 22
- 23
- 24
eth10:
rack1:
- 19
- 20
- 21
eth11:
rack1:
- 19
- 20
- 21
eth12:
rack1:
- 22
- 23
- 24
eth13:
rack1:
- 22
- 23
- 24
networks:
- ext1
- ext2
- ext3
- ext4
- external1
- external2
- openstack-mgmt
- openstack-stg
- swift-replication
- pxe-dhcp
domain-settings:
# These settings specify the list of devices that will be used
# for the rings. The values can be disk device by path, in which
# case all the disks under the path will be used, or individual disks
# can be specified using /dev/sdb style naming.
account-ring-devices:
- /dev/disk/by-path/pci-0000:01
container-ring-devices:
- /dev/disk/by-path/pci-0000:01
object-ring-devices:
- /dev/disk/by-path/pci-0004:01
software-bootstrap:
controllers[0]: |
export GIT_BRANCH=newton
export DEPLOY_CEPH=yes
export DEPLOY_OPSMGR=yes
# export ANSIBLE_HOST_KEY_CHECKING=False
URL="https://raw.githubusercontent.com/open-power-ref-design-toolkit/os-services/${GIT_BRANCH}/scripts/bootstrap-solution.sh"
wget ${URL}
chmod +x bootstrap-solution.sh
./bootstrap-solution.sh