terraform { required_providers { proxmox = { source = "bpg/proxmox" version = ">= 0.50.0" } } } provider "proxmox" { endpoint = "https://192.168.0.166:8006" api_token = var.proxmox_api_token insecure = true } resource "proxmox_virtual_environment_container" "jenkins" { description = "Managed by Terraform" start_on_boot = "true" cpu { cores = 2 } memory { dedicated = 2048 swap = 512 } disk { datastore_id = "local-lvm" size = 15 } console { enabled = true type = "shell" } initialization { dns { servers = ["192.168.0.181"] } hostname = "jenkins" ip_config { ipv4 { address = "dhcp" } } } network_interface { name = "eth0" firewall = true } node_name = "homestrg1" operating_system { template_file_id = "local:vztmpl/ubuntu-24.10-standard_24.10-1_amd64.tar.zst" type = "ubuntu" } tags = [ "linux", "ubuntu" ] startup { order = "3" } }