commit fix
This commit is contained in:
124
example_locals.tf
Normal file
124
example_locals.tf
Normal file
@@ -0,0 +1,124 @@
|
||||
locals {
|
||||
nodes = {
|
||||
k8s-worker-1 = {
|
||||
index = 1
|
||||
cpu = 2
|
||||
memory = 2048
|
||||
|
||||
disks = [
|
||||
{
|
||||
datastore = "ssd2"
|
||||
interface = "scsi0"
|
||||
size = 20
|
||||
import_from = "local:import/ubuntu-24.qcow2"
|
||||
}
|
||||
]
|
||||
|
||||
network_devices = [
|
||||
{
|
||||
bridge = "vmbr0"
|
||||
vlan_id = 20
|
||||
ip = "192.168.20.10"
|
||||
cidr = 24
|
||||
gateway = "192.168.20.1"
|
||||
}
|
||||
]
|
||||
},
|
||||
k8s-worker-2 = {
|
||||
index = 2
|
||||
cpu = 2
|
||||
memory = 2048
|
||||
|
||||
disks = [
|
||||
{
|
||||
datastore = "ssd2"
|
||||
interface = "scsi0"
|
||||
size = 20
|
||||
import_from = "local:import/ubuntu-24.qcow2"
|
||||
}
|
||||
]
|
||||
|
||||
network_devices = [
|
||||
{
|
||||
bridge = "vmbr0"
|
||||
vlan_id = 20
|
||||
ip = "192.168.20.11"
|
||||
cidr = 24
|
||||
gateway = "192.168.20.1"
|
||||
}
|
||||
]
|
||||
},
|
||||
k8s-worker-3 = {
|
||||
index = 3
|
||||
cpu = 2
|
||||
memory = 2048
|
||||
|
||||
disks = [
|
||||
{
|
||||
datastore = "ssd2"
|
||||
interface = "scsi0"
|
||||
size = 20
|
||||
import_from = "local:import/ubuntu-24.qcow2"
|
||||
}
|
||||
]
|
||||
|
||||
network_devices = [
|
||||
{
|
||||
bridge = "vmbr0"
|
||||
vlan_id = 20
|
||||
ip = "192.168.20.12"
|
||||
cidr = 24
|
||||
gateway = "192.168.20.1"
|
||||
}
|
||||
]
|
||||
},
|
||||
k8s-worker-4 = {
|
||||
index = 4
|
||||
cpu = 2
|
||||
memory = 2048
|
||||
|
||||
disks = [
|
||||
{
|
||||
datastore = "ssd2"
|
||||
interface = "scsi0"
|
||||
size = 20
|
||||
import_from = "local:import/ubuntu-24.qcow2"
|
||||
}
|
||||
]
|
||||
|
||||
network_devices = [
|
||||
{
|
||||
bridge = "vmbr0"
|
||||
vlan_id = 20
|
||||
ip = "192.168.20.13"
|
||||
cidr = 24
|
||||
gateway = "192.168.20.1"
|
||||
}
|
||||
]
|
||||
},
|
||||
k8s-worker-5 = {
|
||||
index = 5
|
||||
cpu = 2
|
||||
memory = 2048
|
||||
|
||||
disks = [
|
||||
{
|
||||
datastore = "ssd2"
|
||||
interface = "scsi0"
|
||||
size = 20
|
||||
import_from = "local:import/ubuntu-24.qcow2"
|
||||
}
|
||||
]
|
||||
|
||||
network_devices = [
|
||||
{
|
||||
bridge = "vmbr0"
|
||||
vlan_id = 20
|
||||
ip = "192.168.20.14"
|
||||
cidr = 24
|
||||
gateway = "192.168.20.1"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user