23 lines
575 B
HCL
23 lines
575 B
HCL
resource "proxmox_lxc" "basic" {
|
|
target_node = "pve"
|
|
hostname = "lxc-basic"
|
|
ostemplate = "nfs_Vulnerable: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 = "local-zfs"
|
|
size = "8G"
|
|
}
|
|
|
|
network {
|
|
name = "eth0"
|
|
bridge = "vmbr0"
|
|
ip = "dhcp"
|
|
}
|
|
} |