(multinode) Update configs for new scripting
- The site definitoin and manifest JSON needs updated to reflect the new extensible config. Change-Id: Ic037e37e97019f19505d9087a0cdf1ea8957f457
This commit is contained in:
parent
a7e6a8937a
commit
2eb00af047
|
@ -10,7 +10,7 @@ metadata:
|
||||||
data:
|
data:
|
||||||
host_profile: defaults
|
host_profile: defaults
|
||||||
addressing:
|
addressing:
|
||||||
- network: gp
|
- network: pxe
|
||||||
address: 172.24.1.11
|
address: 172.24.1.11
|
||||||
metadata:
|
metadata:
|
||||||
boot_mac: '52:54:00:00:a3:31'
|
boot_mac: '52:54:00:00:a3:31'
|
||||||
|
@ -29,7 +29,7 @@ metadata:
|
||||||
data:
|
data:
|
||||||
host_profile: defaults
|
host_profile: defaults
|
||||||
addressing:
|
addressing:
|
||||||
- network: gp
|
- network: pxe
|
||||||
address: 172.24.1.12
|
address: 172.24.1.12
|
||||||
metadata:
|
metadata:
|
||||||
boot_mac: '52:54:00:1a:95:0d'
|
boot_mac: '52:54:00:1a:95:0d'
|
||||||
|
@ -48,7 +48,7 @@ metadata:
|
||||||
data:
|
data:
|
||||||
host_profile: defaults
|
host_profile: defaults
|
||||||
addressing:
|
addressing:
|
||||||
- network: gp
|
- network: pxe
|
||||||
address: 172.24.1.13
|
address: 172.24.1.13
|
||||||
metadata:
|
metadata:
|
||||||
boot_mac: '52:54:00:31:c2:36'
|
boot_mac: '52:54:00:31:c2:36'
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
schema: 'drydock/NetworkLink/v1'
|
schema: 'drydock/NetworkLink/v1'
|
||||||
metadata:
|
metadata:
|
||||||
schema: 'metadata/Document/v1'
|
schema: 'metadata/Document/v1'
|
||||||
name: gp
|
name: pxe
|
||||||
layeringDefinition:
|
layeringDefinition:
|
||||||
abstract: false
|
abstract: false
|
||||||
layer: site
|
layer: site
|
||||||
|
@ -14,30 +14,35 @@ data:
|
||||||
linkspeed: auto
|
linkspeed: auto
|
||||||
trunking:
|
trunking:
|
||||||
mode: disabled
|
mode: disabled
|
||||||
default_network: gp
|
default_network: pxe
|
||||||
allowed_networks:
|
allowed_networks:
|
||||||
- gp
|
- pxe
|
||||||
...
|
...
|
||||||
---
|
---
|
||||||
schema: 'drydock/Network/v1'
|
schema: 'drydock/Network/v1'
|
||||||
metadata:
|
metadata:
|
||||||
schema: 'metadata/Document/v1'
|
schema: 'metadata/Document/v1'
|
||||||
name: gp
|
name: pxe
|
||||||
layeringDefinition:
|
layeringDefinition:
|
||||||
abstract: false
|
abstract: false
|
||||||
layer: site
|
layer: site
|
||||||
storagePolicy: cleartext
|
storagePolicy: cleartext
|
||||||
data:
|
data:
|
||||||
mtu: 1500
|
|
||||||
cidr: 172.24.1.0/24
|
cidr: 172.24.1.0/24
|
||||||
ranges:
|
|
||||||
- type: dhcp
|
|
||||||
start: 172.24.1.100
|
|
||||||
end: 172.24.1.200
|
|
||||||
routes:
|
routes:
|
||||||
- subnet: 0.0.0.0/0
|
- subnet: 0.0.0.0/0
|
||||||
gateway: 172.24.1.1
|
gateway: 172.24.1.1
|
||||||
metric: 10
|
metric: 100
|
||||||
|
ranges:
|
||||||
|
- type: reserved
|
||||||
|
start: 172.24.1.1
|
||||||
|
end: 172.24.1.10
|
||||||
|
- type: static
|
||||||
|
start: 172.24.1.11
|
||||||
|
end: 172.24.1.20
|
||||||
|
- type: dhcp
|
||||||
|
start: 172.24.1.41
|
||||||
|
end: 172.24.1.50
|
||||||
dns:
|
dns:
|
||||||
domain: gate.local
|
domain: gate.local
|
||||||
servers: '172.24.1.9'
|
servers: '172.24.1.9'
|
||||||
|
|
|
@ -9,7 +9,6 @@ metadata:
|
||||||
storagePolicy: cleartext
|
storagePolicy: cleartext
|
||||||
data:
|
data:
|
||||||
hardware_profile: 'GenericVM'
|
hardware_profile: 'GenericVM'
|
||||||
primary_network: 'gp'
|
|
||||||
oob:
|
oob:
|
||||||
type: 'libvirt'
|
type: 'libvirt'
|
||||||
libvirt_uri: 'qemu+ssh://virtmgr@172.24.1.1/system'
|
libvirt_uri: 'qemu+ssh://virtmgr@172.24.1.1/system'
|
||||||
|
@ -32,13 +31,15 @@ data:
|
||||||
mountpoint: '/boot'
|
mountpoint: '/boot'
|
||||||
fstype: 'ext4'
|
fstype: 'ext4'
|
||||||
mount_options: 'defaults'
|
mount_options: 'defaults'
|
||||||
|
|
||||||
|
primary_network: pxe
|
||||||
interfaces:
|
interfaces:
|
||||||
ens3:
|
ens3:
|
||||||
device_link: 'gp'
|
device_link: pxe
|
||||||
slaves:
|
slaves:
|
||||||
- 'ens3'
|
- ens3
|
||||||
networks:
|
networks:
|
||||||
- 'gp'
|
- pxe
|
||||||
platform:
|
platform:
|
||||||
image: 'xenial'
|
image: 'xenial'
|
||||||
kernel: 'hwe-16.04'
|
kernel: 'hwe-16.04'
|
||||||
|
|
|
@ -31,6 +31,23 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"networking":{
|
||||||
|
"pxe": {
|
||||||
|
"roles":["ssh","bgp", "dns"],
|
||||||
|
"layer2": {
|
||||||
|
"mtu": 1500,
|
||||||
|
"address": "52:54:00:00:dd:31"
|
||||||
|
},
|
||||||
|
"layer3": {
|
||||||
|
"cidr": "172.24.1.0/24",
|
||||||
|
"address": "172.24.1.1",
|
||||||
|
"gateway": "172.24.1.1",
|
||||||
|
"routing": {
|
||||||
|
"mode": "nat"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"stages": [
|
"stages": [
|
||||||
{
|
{
|
||||||
"name": "Gate Setup",
|
"name": "Gate Setup",
|
||||||
|
@ -98,49 +115,120 @@
|
||||||
"build": {
|
"build": {
|
||||||
"memory": 3072,
|
"memory": 3072,
|
||||||
"vcpus": 2,
|
"vcpus": 2,
|
||||||
|
"disk_layout": "simple",
|
||||||
|
"networking": {
|
||||||
|
"ens3": {
|
||||||
"mac": "52:54:00:00:be:31",
|
"mac": "52:54:00:00:be:31",
|
||||||
"ip": "172.24.1.9",
|
"pci": {
|
||||||
"io_profile": "fast",
|
"slot": 3,
|
||||||
"disk_profile": "simple",
|
"port": 0
|
||||||
|
},
|
||||||
|
"attachment": {
|
||||||
|
"network": "pxe"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"addresses": {
|
||||||
|
"pxe": {
|
||||||
|
"ip": "172.24.1.9"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"bootstrap": true,
|
"bootstrap": true,
|
||||||
"userdata": "packages: [docker.io]"
|
"userdata": "packages: [docker.io]"
|
||||||
},
|
},
|
||||||
"n0" : {
|
"n0" : {
|
||||||
"memory": 24576,
|
"memory": 24576,
|
||||||
"vcpus": 16,
|
"vcpus": 16,
|
||||||
|
"disk_layout": "simple",
|
||||||
|
"networking": {
|
||||||
|
"ens3": {
|
||||||
"mac": "52:54:00:00:a4:31",
|
"mac": "52:54:00:00:a4:31",
|
||||||
"ip": "172.24.1.10",
|
"pci": {
|
||||||
"io_profile": "fast",
|
"slot": 3,
|
||||||
"disk_profile": "simple",
|
"port": 0
|
||||||
|
},
|
||||||
|
"attachment": {
|
||||||
|
"network": "pxe"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"addresses": {
|
||||||
|
"pxe": {
|
||||||
|
"ip": "172.24.1.10"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"bootstrap": true
|
"bootstrap": true
|
||||||
},
|
},
|
||||||
"n1" : {
|
"n1" : {
|
||||||
"memory": 3072,
|
"memory": 3072,
|
||||||
"vcpus": 2,
|
"vcpus": 2,
|
||||||
|
"disk_layout": "simple",
|
||||||
|
"networking": {
|
||||||
|
"ens3": {
|
||||||
"mac": "52:54:00:00:a3:31",
|
"mac": "52:54:00:00:a3:31",
|
||||||
"ip": "172.24.1.11",
|
"pci": {
|
||||||
"io_profile": "fast",
|
"slot": 3,
|
||||||
"disk_profile": "simple",
|
"port": 0
|
||||||
|
},
|
||||||
|
"attachment": {
|
||||||
|
"network": "pxe"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"addresses": {
|
||||||
|
"pxe": {
|
||||||
|
"ip": "172.24.1.11"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"bootstrap": false
|
"bootstrap": false
|
||||||
},
|
},
|
||||||
"n2" : {
|
"n2" : {
|
||||||
"memory": 3072,
|
"memory": 3072,
|
||||||
"vcpus": 2,
|
"vcpus": 2,
|
||||||
|
"disk_layout": "simple",
|
||||||
|
"networking": {
|
||||||
|
"ens3": {
|
||||||
"mac": "52:54:00:1a:95:0d",
|
"mac": "52:54:00:1a:95:0d",
|
||||||
"ip": "172.24.1.12",
|
"pci": {
|
||||||
"io_profile": "fast",
|
"slot": 3,
|
||||||
"disk_profile": "simple",
|
"port": 0
|
||||||
|
},
|
||||||
|
"attachment": {
|
||||||
|
"network": "pxe"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"addresses": {
|
||||||
|
"pxe": {
|
||||||
|
"ip": "172.24.1.12"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"bootstrap": false
|
"bootstrap": false
|
||||||
},
|
},
|
||||||
"n3" : {
|
"n3" : {
|
||||||
"memory": 3072,
|
"memory": 3072,
|
||||||
"vcpus": 2,
|
"vcpus": 2,
|
||||||
|
"disk_layout": "simple",
|
||||||
|
"networking": {
|
||||||
|
"ens3": {
|
||||||
"mac": "52:54:00:31:c2:36",
|
"mac": "52:54:00:31:c2:36",
|
||||||
"ip": "172.24.1.13",
|
"pci": {
|
||||||
"io_profile": "fast",
|
"slot": 3,
|
||||||
"disk_profile": "simple",
|
"port": 0
|
||||||
|
},
|
||||||
|
"attachment": {
|
||||||
|
"network": "pxe"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"addresses": {
|
||||||
|
"pxe": {
|
||||||
|
"ip": "172.24.1.13"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"bootstrap": false
|
"bootstrap": false
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
"bgp" : {
|
"bgp" : {
|
||||||
"quagga_as": 64688,
|
"quagga_as": 64688,
|
||||||
|
|
Loading…
Reference in New Issue