# Copyright 2017 AT&T Intellectual Property. All other 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. #################### # # bootstrap_seed.yaml - Site server design definition for physical layer # #################### # version the schema in this file so consumers can rationally parse it --- apiVersion: 'v1.0' kind: NetworkLink metadata: name: oob region: sitename date: 17-FEB-2017 author: sh8121@att.com description: Describe layer 1 attributes. Primary key is 'name'. These settings will generally be things the switch and server have to agree on spec: bonding: mode: none mtu: 1500 linkspeed: 100full trunking: mode: none default_network: oob --- # pxe is a bit of 'magic' indicating the link config used when PXE booting # a node. All other links indicate network configs applied when the node # is deployed. apiVersion: 'v1.0' kind: NetworkLink metadata: name: pxe region: sitename date: 17-FEB-2017 author: sh8121@att.com description: Describe layer 1 attributes. Primary key is 'name'. These settings will generally be things the switch and server have to agree on spec: bonding: mode: none mtu: 1500 linkspeed: auto # Is this link supporting multiple layer 2 networks? # none is a port-based VLAN identified by default_network # tagged is is using 802.1q VLAN tagging. Untagged packets will default to default_netwokr trunking: mode: none # use name, will translate to VLAN ID default_network: pxe --- apiVersion: 'v1.0' kind: NetworkLink metadata: name: gp region: sitename date: 17-FEB-2017 author: sh8121@att.com description: Describe layer 1 attributes. These CIs will generally be things the switch and server have to agree on # pxe is a bit of 'magic' indicating the link config used when PXE booting # a node. All other links indicate network configs applied when the node # is deployed. spec: # If this link is a bond of physical links, how is it configured # 802.3ad # active-backup # balance-rr # Can add support for others down the road bonding: mode: 802.3ad # For LACP (802.3ad) xmit hashing policy: layer2, layer2+3, layer3+4, encap3+4 hash: layer3+4 # 802.3ad specific options peer_rate: slow mon_rate: default up_delay: default down_delay: default mtu: 9000 linkspeed: auto # Is this link supporting multiple layer 2 networks? trunking: mode: tagged default_network: mgmt --- apiVersion: 'v1.0' kind: Network metadata: name: oob region: sitename date: 17-FEB-2017 author: sh8121@att.com description: Describe layer 2/3 attributes. Primarily CIs used for configuring server interfaces spec: allocation: static cidr: 172.16.100.0/24 ranges: - type: static start: 172.16.100.15 end: 172.16.100.254 dns: domain: ilo.sitename.att.com servers: 172.16.100.10 --- apiVersion: 'v1.0' kind: Network metadata: name: pxe region: sitename date: 17-FEB-2017 author: sh8121@att.com description: Describe layer 2/3 attributes. Primarily CIs used for configuring server interfaces spec: # Layer 2 VLAN segment id, could support other segmentations. Optional vlan_id: '99' # How are addresses assigned? allocation: dhcp # MTU for this VLAN interface, if not specified it will be inherited from the link mtu: 1500 # Network address cidr: 172.16.0.0/24 # Desribe IP address ranges ranges: - type: dhcp start: 172.16.0.5 end: 172.16.0.254 # DNS settings for this network dns: # Domain addresses on this network will be registered under domain: admin.sitename.att.com # DNS servers that a server using this network as its default gateway should use servers: 172.16.0.10 --- apiVersion: 'v1.0' kind: Network metadata: name: mgmt region: sitename date: 17-FEB-2017 author: sh8121@att.com description: Describe layer 2/3 attributes. Primarily CIs used for configuring server interfaces spec: vlan_id: '100' # How are addresses assigned? allocation: static # Allow MTU to be inherited from link the network rides on mtu: 1500 # Network address cidr: 172.16.1.0/24 # Desribe IP address ranges ranges: - type: static start: 172.16.1.15 end: 172.16.1.254 # Static routes to be added for this network routes: - subnet: 0.0.0.0/0 # A blank gateway would leave to a static route specifying # only the interface as a source gateway: 172.16.1.1 metric: 10 # DNS settings for this network dns: # Domain addresses on this network will be registered under domain: mgmt.sitename.example.com # DNS servers that a server using this network as its default gateway should use servers: 172.16.1.9,172.16.1.10 --- apiVersion: 'v1.0' kind: Network metadata: name: private region: sitename date: 17-FEB-2017 author: sh8121@att.com description: Describe layer 2/3 attributes. Primarily CIs used for configuring server interfaces spec: vlan_id: '101' allocation: static mtu: 9000 cidr: 172.16.2.0/24 # Desribe IP address ranges ranges: # Type can be reserved (not used for baremetal), static (all explicit # assignments should fall here), dhcp (will be used by a DHCP server on this network) - type: static start: 172.16.2.15 end: 172.16.2.254 dns: domain: priv.sitename.example.com servers: 172.16.2.9,172.16.2.10 --- apiVersion: 'v1.0' kind: Network metadata: name: public region: sitename date: 17-FEB-2017 author: sh8121@att.com description: Describe layer 2/3 attributes. Primarily CIs used for configuring server interfaces spec: vlan_id: '102' # How are addresses assigned? allocation: static # MTU size for the VLAN interface mtu: 1500 cidr: 172.16.3.0/24 # Desribe IP address ranges ranges: - type: static start: 172.16.3.15 end: 172.16.3.254 routes: - subnet: 0.0.0.0/0 gateway: 172.16.3.1 metric: 9 dns: domain: sitename.example.com servers: 8.8.8.8