-
Notifications
You must be signed in to change notification settings - Fork 1
/
config-starter.yml
204 lines (199 loc) · 6.11 KB
/
config-starter.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
---
# 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)
# starter configuration build on top of a private compute cloud.
#
# It features three converged nodes that each have controller, compute,
# and ceph roles.
version: 1.1
reference-architecture:
- private-compute-cloud
- dbaas
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: 47
ipaddr-mgmt-switch:
rack1: 192.168.16.20
ipaddr-data-switch:
rack1: 192.168.16.25
redundant-network: false
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:
external1:
description: Organization site or external network
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
eth-port: eth10
mtu: 9000
external2:
description: Interface for eth11
method: manual
eth-port: eth11
mtu: 9000
pxe-dhcp:
description: Change pxe port(eth15) to dhcp
method: dhcp
eth-port: eth15
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: eth10
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: eth10
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: eth11
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: eth11
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: eth11
mtu: 9000
racks:
- rack-id: rack1
data-center: dataeast
room: room33
row: row1
node-templates:
starter:
hostname: starter
roles:
- controller
- compute
- ceph-monitor
- ceph-osd
- 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
# 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:
rack1:
- 1
- 2
- 3
eth11:
rack1:
- 4
- 5
- 6
networks:
- openstack-mgmt
- openstack-stg
- openstack-tenant-vlan
- openstack-tenant-vxlan
- ceph-replication
- external1
- external2
- pxe-dhcp
domain-settings:
journal-devices:
- /dev/sdc
- /dev/sdd
osd-devices:
- /dev/sde
- /dev/sdf
- /dev/sdg
- /dev/sdh
- /dev/sdi
- /dev/sdj
- /dev/sdk
- /dev/sdl
software-bootstrap:
starter[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