terraform-test/lxc_Demo.tf
2024-08-27 19:25:09 +00:00

27 lines
551 B
HCL

resource "proxmox_lxc" "TerraformDemo" {
target_node = "ThePearl"
hostname = "lxc-SemaTerra"
ostemplate = "local:vztmpl/ubuntu-24.04-standard_24.04-2_amd64.tar.zst"
password = var.root_password
unprivileged = true
memory = 2048
swap = 512
cores = 2
cpulimit = 2
ssh_keys = [
var.ssh_public_key
]
// Terraform will crash without rootfs defined
rootfs {
storage = "TheTower"
size = "4G"
}
network {
name = "eth0"
bridge = "vmbr0"
ip = "dhcp"
}
}