terraform { required_providers { proxmox = { source = "telmate/proxmox" version = "3.0.2-rc04" } } } provider "proxmox" { pm_api_url = "https://192.168.1.45:8006/api2/json" pm_tls_insecure = true #pm_api_token_id = "terraform-prov@pve!terraform" #pm_api_token_secret = "64bd4ba4-f4c0-4029-9f16-5b61bca2da0d" pm_user = "terraform-prov@pve" pm_password = "terraform" pm_debug = true } resource "proxmox_lxc" "test" { target_node = "atlas" # "tl-core02" hostname = "test" # "training-xxx" ostemplate = "local:vztmpl/alpine-3.21-default_20241217_amd64.tar.xz" unprivileged = true password = "test1" cores = 1 memory = 512 swap = 512 rootfs { storage = "local-lvm" size = "4G" } network { name = "eth0" bridge = "vmbr0" ip = "dhcp" #gw = "192.168.1.1" } # ssh_public_keys = file("~/.ssh/id_rsa.pub") start = true #tags = "tofu,lxc" }