Files
terraform/srv-debianlxc.tf
2025-10-18 12:06:42 -04:00

23 lines
570 B
HCL

resource "proxmox_lxc" "basic" {
target_node = "pve"
hostname = "lxc-basic"
ostemplate = "local:vztmpl/debian-13-standard_13.1-2_amd64.tar.zst"
password = "BasicLXCContainer"
unprivileged = true
description = "Nice"
ssh_public_keys = <<-EOT
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJo337iE4+Ry7T65Ey+2QQ9aRaGxP7zzLtMV+hBPyA59 eddsa-key-20250525
EOT
// Terraform will crash without rootfs defined
rootfs {
storage = "nfs_Protected"
size = "8G"
}
network {
name = "eth0"
bridge = "vmbr0"
ip = "dhcp"
}
}