calculate subnet/netmask from cidr
[yaml_builds.git] / dellgen10.yaml
1 ---
2 ##############################################################################
3 # Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.        #
4 #                                                                            #
5 # Licensed under the Apache License, Version 2.0 (the "License"); you may    #
6 # not use this file except in compliance with the License.                   #
7 #                                                                            #
8 # You may obtain a copy of the License at                                    #
9 #       http://www.apache.org/licenses/LICENSE-2.0                           #
10 #                                                                            #
11 # Unless required by applicable law or agreed to in writing, software        #
12 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT  #
13 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.           #
14 # See the License for the specific language governing permissions and        #
15 # limitations under the License.                                             #
16 ##############################################################################
17
18 site_name: dellgen10
19 site_type: sriov
20 ipmi_admin:
21   username: root
22   password: calvin
23 networks:
24   bonded: yes
25   primary: bond0
26   slaves:
27     - name: enp94s0f0
28     - name: enp94s0f1
29   oob:
30     vlan: 40
31     interface:
32     cidr: 192.168.41.0/24
33     routes:
34       gateway: 192.168.41.1
35     ranges:
36       reserved:
37         start: 192.168.41.2
38         end: 192.168.41.12
39       static:
40         start: 192.168.41.13
41         end: 192.168.41.254
42   host:
43     vlan: 41
44     interface: bond0.41
45     cidr: 192.168.2.0/24
46     routes:
47        gateway: 192.168.2.200
48     ranges:
49       reserved:
50         start: 192.168.2.84
51         end: 192.168.2.86
52       static:
53         start: 192.168.2.40
54         end: 192.168.2.45
55   storage:
56     vlan: 42
57     interface: bond0.42
58     cidr: 172.31.2.0/24
59     ranges:
60       reserved:
61         start: 172.31.2.1
62         end: 172.31.2.10
63       static:
64         start: 172.31.2.11
65         end: 172.31.2.254
66   pxe:
67     vlan: 43
68     interface: eno3
69     cidr: 172.30.2.0/24
70     gateway: 172.30.2.1
71     routes:
72       gateway: 172.30.2.40
73     ranges:
74       reserved:
75         start: 172.30.2.2
76         end:  172.30.2.10
77       static:
78         start: 172.30.2.11
79         end: 172.30.2.200
80       dhcp:
81         start: 172.30.2.201
82         end: 172.30.2.254
83   ksn:
84     vlan: 44
85     interface: bond0.44
86     cidr: 172.29.1.0/24
87     local_asnumber: 65531
88     ranges:
89       static:
90         start: 172.29.1.5
91         end: 172.29.1.254
92     additional_cidrs:
93       -  172.29.1.128/29
94     ingress_cidr: 172.29.1.129/32
95     peers:
96     - ip: 172.29.1.1
97       scope: global
98       asnumber: 65001
99     vrrp_ip: 172.29.1.1 # keep peers ip address in case of only peer.
100   neutron:
101     vlan: 45
102     interface: bond0.45
103     cidr: 10.0.102.0/24
104     ranges:
105       reserved:
106         start: 10.0.102.1
107         end: 10.0.102.10
108       static:
109         start: 10.0.102.11
110         end: 10.0.102.254
111 dns:
112   upstream_servers:
113     - 192.168.2.85
114     - 8.8.8.8
115     - 8.8.4.4
116   ingress_domain: dellgen10.akraino.org
117   domain: lab.akraino.org
118 sriovnets:
119 - physical: sriovnet1
120   interface: enp135s0f0
121   vlan_start: 2001
122   vlan_end: 3000
123   whitelists:
124   - "address": "0000:87:02.0"
125   - "address": "0000:87:02.1"
126   - "address": "0000:87:03.2"
127   - "address": "0000:87:03.3"
128   - "address": "0000:87:03.4"
129   - "address": "0000:87:03.5"
130   - "address": "0000:87:03.6"
131   - "address": "0000:87:03.7"
132   - "address": "0000:87:04.0"
133   - "address": "0000:87:04.1"
134   - "address": "0000:87:04.2"
135   - "address": "0000:87:04.3"
136   - "address": "0000:87:02.2"
137   - "address": "0000:87:04.4"
138   - "address": "0000:87:04.5"
139   - "address": "0000:87:04.6"
140   - "address": "0000:87:04.7"
141   - "address": "0000:87:05.0"
142   - "address": "0000:87:05.1"
143   - "address": "0000:87:05.2"
144   - "address": "0000:87:05.3"
145   - "address": "0000:87:05.4"
146   - "address": "0000:87:05.5"
147   - "address": "0000:87:02.3"
148   - "address": "0000:87:05.6"
149   - "address": "0000:87:05.7"
150   - "address": "0000:87:02.4"
151   - "address": "0000:87:02.5"
152   - "address": "0000:87:02.6"
153   - "address": "0000:87:02.7"
154   - "address": "0000:87:03.0"
155   - "address": "0000:87:03.1"
156 - physical: sriovnet2
157   interface: enp135s0f1
158   vlan_start: 2001
159   vlan_end: 3000
160   whitelists:
161   - "address": "0000:87:0a.0"
162   - "address": "0000:87:0a.1"
163   - "address": "0000:87:0b.2"
164   - "address": "0000:87:0b.3"
165   - "address": "0000:87:0b.4"
166   - "address": "0000:87:0b.5"
167   - "address": "0000:87:0b.6"
168   - "address": "0000:87:0b.7"
169   - "address": "0000:87:0c.0"
170   - "address": "0000:87:0c.1"
171   - "address": "0000:87:0c.2"
172   - "address": "0000:87:0c.3"
173   - "address": "0000:87:0a.2"
174   - "address": "0000:87:0c.4"
175   - "address": "0000:87:0c.5"
176   - "address": "0000:87:0c.6"
177   - "address": "0000:87:0c.7"
178   - "address": "0000:87:0d.0"
179   - "address": "0000:87:0d.1"
180   - "address": "0000:87:0d.2"
181   - "address": "0000:87:0d.3"
182   - "address": "0000:87:0d.4"
183   - "address": "0000:87:0d.5"
184   - "address": "0000:87:0a.3"
185   - "address": "0000:87:0d.6"
186   - "address": "0000:87:0d.7"
187   - "address": "0000:87:0a.4"
188   - "address": "0000:87:0a.5"
189   - "address": "0000:87:0a.6"
190   - "address": "0000:87:0a.7"
191   - "address": "0000:87:0b.0"
192   - "address": "0000:87:0b.1"
193 storage:
194   osds:
195     - data: /dev/sda
196       journal: /var/lib/ceph/journal/journal-sda
197     - data: /dev/sdb
198       journal: /var/lib/ceph/journal/journal-sdb
199     - data: /dev/sdc
200       journal: /var/lib/ceph/journal/journal-sdc
201     - data: /dev/sdd
202       journal: /var/lib/ceph/journal/journal-sdd
203     - data: /dev/sde
204       journal: /var/lib/ceph/journal/journal-sde
205     - data: /dev/sdf
206       journal: /var/lib/ceph/journal/journal-sdf
207   osd_count: 6
208   total_osd_count: 18
209 genesis:
210   name: aknode40
211   oob: 192.168.41.40
212   host: 192.168.2.40
213   storage: 172.31.2.40
214   pxe: 172.30.2.40
215   ksn: 172.29.1.40
216   neutron: 10.0.102.40
217   root_password: akraino,d
218 #  bios_template: dell_r740_g14_uefi_base.xml.template
219 #  boot_template: dell_r740_g14_uefi_httpboot.xml.template
220 #  http_boot_device: NIC.Slot.2-1-1
221 masters:
222   - name : aknode41
223     oob: 192.168.41.41
224     host: 192.168.2.41
225     storage: 172.31.2.41
226     pxe: 172.30.2.41
227     ksn: 172.29.1.41
228     neutron: 10.0.102.41
229     oob_user: root
230     oob_password: calvin
231   - name : aknode42
232     oob: 192.168.41.42
233     host: 192.168.2.42
234     storage: 172.31.2.42
235     pxe: 172.30.2.42
236     ksn: 172.29.1.42
237     neutron: 10.0.102.42
238     oob_user: root
239     oob_password: calvin
240 #workers:
241 #  - name : aknode43
242 #    oob: 192.168.41.43
243 #    host: 192.168.2.43
244 #    storage: 172.31.2.43
245 #    pxe: 172.30.2.43
246 #    ksn: 172.29.1.43
247 #    neutron: 10.0.102.43
248 #  - name : aknode44
249 #    oob: 192.168.41.44
250 #    host: 192.168.2.44
251 #    storage: 172.31.2.44
252 #    pxe: 172.30.2.44
253 #    ksn: 172.29.1.44
254 #    neutron: 10.0.102.44
255 hardware:
256   vendor: DELL
257   generation: '10'
258   hw_version: '3'
259   bios_version: '2.8'
260   bios_template: dell_r740_g14_uefi_base.xml.template
261   boot_template: dell_r740_g14_uefi_httpboot.xml.template
262   http_boot_device: NIC.Slot.2-1-1
263 disks:
264   - name : sdg
265     labels:
266       bootdrive: 'true'
267     partitions:
268       - name: root
269         size: 20g
270         mountpoint: /
271       - name: boot
272         size: 1g
273         mountpoint: /boot
274       - name: var
275         size: 100g
276         mountpoint: /var
277   - name : sdh
278     partitions:
279       - name: ceph
280         size: 300g
281         mountpoint: /var/lib/ceph/journal
282 disks_compute:
283   - name : sdg
284     labels:
285       bootdrive: 'true'
286     partitions:
287       - name: root
288         size: 20g
289         mountpoint: /
290       - name: boot
291         size: 1g
292         mountpoint: /boot
293       - name: var
294         size: '>300g'
295         mountpoint: /var
296   - name : sdh
297     partitions:
298       - name: nova
299         size: '99%'
300         mountpoint: /var/lib/nova
301 genesis_ssh_public_key: "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC/n4mNLAj3XKG2fcm+8eVe0NUlNH0g8DA8KJ53rSLKccm8gm4UgLmGOJyBfUloQZMuOpU6a+hexN4ECCliqI7+KUmgJgsvLkJ3OUMNTEVu9tDX5mdXeffsufaqFkAdmbJ/9PMPiPQ3/UqbbtyEcqoZAwUWf4ggAWSp00SGE1Okg+skPSbDzPVHb4810eXZT1yoIg29HAenJNNrsVxvnMT2kw2OYmLfxgEUh1Ev4c5LnUog4GXBDHQtHAwaIoTu9s/q8VIvGav62RJVFn3U1D0jkiwDLSIFn8ezORQ4YkSidwdSrtqsqa2TJ0E5w/n5h5IVGO9neY8YlXrgynLd4Y+7 root@pocnjrsv132"
302 kubernetes:
303   api_service_ip: 10.96.0.1
304   etcd_service_ip: 10.96.0.2
305   pod_cidr: 10.98.0.0/16
306   service_cidr: 10.96.0.0/15
307 regional_server:
308   ip: 135.16.101.85
309 ...