28 lines
No EOL
639 B
HCL
28 lines
No EOL
639 B
HCL
resource "proxmox_lxc" "cattle" {
|
|
for_each = var.lxc_inventory
|
|
|
|
# Now it looks at the 'node' value for each specific LXC
|
|
target_node = each.value.node
|
|
|
|
hostname = each.value.hostname
|
|
vmid = each.key
|
|
ostemplate = "local:vztmpl/ubuntu-22.04-standard_22.04-1_amd64.tar.zst"
|
|
password = var.lxc_root_password
|
|
unprivileged = true
|
|
|
|
cores = each.value.cores
|
|
memory = each.value.memory
|
|
|
|
rootfs {
|
|
storage = "local-lvm"
|
|
size = each.value.disk_size
|
|
}
|
|
|
|
network {
|
|
name = "eth0"
|
|
bridge = "vmbr0"
|
|
ip = each.value.ip
|
|
gw = each.value.gw
|
|
tag = each.value.vlan
|
|
}
|
|
} |