Files
opentofu-standart-vm/example_locals.tf
Iurii Anfinogenov 40694927c8 commit fix
2026-05-03 13:23:54 +00:00

125 lines
2.3 KiB
HCL

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"
}
]
}
}
}