Examples of proposed YAML schema for site infrastructure
design
This commit is contained in:
parent
8cccc72022
commit
d4e003ba56
|
@ -0,0 +1,65 @@
|
|||
---
|
||||
#############################################################################################################################
|
||||
# name : Name of the hardware type. This name will be used in site_config.yaml to refer back; Example, hp-gen9, #
|
||||
# hp-gen8, dell-v3 ; Mandatory #
|
||||
# vendor : Name of the hardware vendor; Example, HP, Dell ; Mandatory #
|
||||
# generation : Generation of the hardware model; Example, 8, 9,10 ; Mandatory #
|
||||
# version : Version of the hardware model within a generation; Example, v2, v3, v4 ; Mandatory #
|
||||
# bios : Version of the bios in the hardware; Example, 2.2.3, 3.4 ; Mandatory #
|
||||
# boot_mode : Mode of the default boot of hardware; Example, bios, UEFI ; Mandatory #
|
||||
# boot_protocol : Protocol of boot of the hardware; Example, PXE, USB, HDD ; Mandatory #
|
||||
#############################################################################################################################
|
||||
hardware-definition:
|
||||
- name: HPGen8v3
|
||||
vendor: HP
|
||||
generation: 8
|
||||
version: 3
|
||||
bios: 2.2.3
|
||||
boot_mode: bios
|
||||
boot_protocol: PXE
|
||||
pxe_interface: 0
|
||||
device_aliases:
|
||||
pci:
|
||||
- address: pci@0000:00:03.0
|
||||
alias: prim_nic01
|
||||
# type could identify expected hardware - used for hardware manifest validation
|
||||
type: '82540EM Gigabit Ethernet Controller'
|
||||
- address: pci@0000:00:04.0
|
||||
alias: prim_nic02
|
||||
type: '82540EM Gigabit Ethernet Controller'
|
||||
scsi:
|
||||
address: scsi@2:0.0.0
|
||||
alias: primary_boot
|
||||
type: 'VBOX HARDDISK'
|
||||
- name: HPGen9v3
|
||||
vendor: HP
|
||||
generation: 9
|
||||
version: 3
|
||||
bios: 2.2.3
|
||||
boot_mode: bios
|
||||
boot_protocol: PXE
|
||||
pxe_interface: 0
|
||||
- name: HPGen9v4
|
||||
vendor: HP
|
||||
generation: 9
|
||||
version: 4
|
||||
bios: 2.2.3
|
||||
boot_mode: bios
|
||||
boot_protocol: PXE
|
||||
pxe_interface: 0
|
||||
- name: DellR720v2
|
||||
vendor: DELL
|
||||
generation: 9
|
||||
version: 3
|
||||
bios: 2.2.3
|
||||
boot_mode: bios
|
||||
boot_protocol: pxe
|
||||
pxe_interface: NIC.Integrated.1-1-1
|
||||
- name: DellR730v3
|
||||
vendor: DELL
|
||||
generation: 9
|
||||
version: 4
|
||||
bios: 2.2.3
|
||||
boot_mode: bios
|
||||
boot_protocol: pxe
|
||||
pxe_interface: NIC.Integrated.1-1-1
|
|
@ -0,0 +1,171 @@
|
|||
---
|
||||
webvirt: 192.168.1.1
|
||||
site_name: sitename
|
||||
maas_api_key: consumerkey:tokenkey:tokensecret
|
||||
maas_uuid: nonce
|
||||
host_profiles:
|
||||
- name: k8-node
|
||||
hardware_profile: HPGen9v3
|
||||
interfaces:
|
||||
# Keyed on device_name
|
||||
# pxe is a special marker indicating which device should be used for pxe boot
|
||||
- device_name: pxe
|
||||
network_link: pxe
|
||||
slaves:
|
||||
- prim_nic01
|
||||
networks:
|
||||
- name: pxe
|
||||
- device_name: bond0
|
||||
network_link: gp
|
||||
slaves:
|
||||
- prim_nic01
|
||||
- prim_nic02
|
||||
networks:
|
||||
- name: mgmt
|
||||
- name: private
|
||||
oob:
|
||||
type: ipmi
|
||||
network: oob
|
||||
account: admin
|
||||
credential: admin
|
||||
storage:
|
||||
boot_drive:
|
||||
device:
|
||||
bootsize:
|
||||
rootsize:
|
||||
platform:
|
||||
image: ubuntu_16.04_hwe
|
||||
kernel_params: default
|
||||
metadata:
|
||||
introspection_url: http://172.16.1.10:9090
|
||||
- name: k8-node-public
|
||||
host_profile: k8-node
|
||||
interfaces:
|
||||
- device_name: bond0
|
||||
networks:
|
||||
# This is additive, so adds a network to those defined in the inherited host_profile
|
||||
- name: public
|
||||
network:
|
||||
# Describe layer 1 attributes
|
||||
links:
|
||||
- name: pxe
|
||||
bonding:
|
||||
mode: none
|
||||
mtu: 1500
|
||||
linkspeed: auto
|
||||
# Is this link supporting multiple layer 2 networks?
|
||||
trunking:
|
||||
mode: none
|
||||
# use name, will translate to VLAN ID
|
||||
default_network: pxe
|
||||
- name: gp
|
||||
bonding:
|
||||
mode: 802.3ad
|
||||
hash: layer3+4
|
||||
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
|
||||
networks:
|
||||
- name: pxe
|
||||
vlan_id: 99
|
||||
# How are addresses assigned?
|
||||
allocation: dhcp
|
||||
# Allow MTU to be inherited from link the network rides on
|
||||
mtu: 1500
|
||||
cidr: 172.16.0.0/24
|
||||
# Desribe IP address ranges
|
||||
ranges:
|
||||
- type: dhcp
|
||||
start: 172.16.0.5
|
||||
end: 172.16.0.254
|
||||
dns:
|
||||
domain:
|
||||
servers:
|
||||
- name: mgmt
|
||||
vlan_id: 100
|
||||
# How are addresses assigned?
|
||||
allocation: static
|
||||
# Allow MTU to be inherited from link the network rides on
|
||||
mtu: 1500
|
||||
cidr: 172.16.1.0/24
|
||||
# Desribe IP address ranges
|
||||
ranges:
|
||||
- type: static
|
||||
start: 172.16.1.15
|
||||
end: 172.16.1.254
|
||||
routes:
|
||||
- subnet: 0.0.0.0/0
|
||||
gateway: 172.16.1.1
|
||||
weight: 10
|
||||
dns:
|
||||
domain: mgmt.sitename.example.com
|
||||
servers: 172.16.1.9,172.16.1.10
|
||||
- name: private
|
||||
vlan_id: 101
|
||||
# How are addresses assigned?
|
||||
allocation: static
|
||||
# Allow MTU to be inherited from link the network rides on
|
||||
mtu: 9000
|
||||
cidr: 172.16.2.0/24
|
||||
# Desribe IP address ranges
|
||||
ranges:
|
||||
- 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
|
||||
- name: public
|
||||
vlan_id: 102
|
||||
# How are addresses assigned?
|
||||
allocation: static
|
||||
# Allow MTU to be inherited from link the network rides on
|
||||
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
|
||||
- weight: 9
|
||||
dns:
|
||||
domain: sitename.example.com
|
||||
servers: 8.8.8.8
|
||||
storage:
|
||||
backend: ceph
|
||||
nodes:
|
||||
- host_profile: k8-node-public
|
||||
name: controller01
|
||||
interfaces:
|
||||
- device_name: bond0
|
||||
networks:
|
||||
# Remove network from interface
|
||||
- name: '!private'
|
||||
addressing:
|
||||
- network: pxe
|
||||
address: dhcp
|
||||
- network: mgmt
|
||||
address: 172.16.1.20
|
||||
- network: public
|
||||
address: 172.16.3.20
|
||||
metadata:
|
||||
roles: os_ctl
|
||||
rack: rack01
|
||||
- host_profile: k8-node
|
||||
name: compute01
|
||||
addressing:
|
||||
- network: pxe
|
||||
address: dhcp
|
||||
- network: mgmt
|
||||
address: 172.16.1.21
|
||||
- network: private
|
||||
address: 172.16.2.21
|
Loading…
Reference in New Issue