Remove test-vm-01 (VMID 100)
Some checks failed
PR Checks / tofu-checks (pull_request) Failing after 3s
1/1 projects applied successfully.

This commit is contained in:
claude 2026-02-13 18:30:35 +01:00
parent 49e830f58d
commit 593e322fa8

View File

@ -67,69 +67,3 @@ resource "proxmox_virtual_environment_download_file" "ubuntu_2404_cloud" {
# Storage: pvesm set local --content iso,vztmpl,backup,snippets,images
# Reason: Proxmox API does not support post-up/post-down (bpg/proxmox #1454)
# See: proxmox-patterns.md in Claude memory
# Test VM (Step 4.6)
resource "proxmox_virtual_environment_vm" "test_vm_01" {
depends_on = [proxmox_virtual_environment_download_file.ubuntu_2404_cloud]
name = "test-vm-01"
node_name = "georgeops"
vm_id = 100
tags = ["test", "tofu", "ubuntu"]
stop_on_destroy = true
started = true
on_boot = false # test VM, no auto-start on host reboot
cpu {
cores = 2
type = "x86-64-v2-AES"
}
memory {
dedicated = 2048
}
disk {
datastore_id = "local"
# NOTE: Using hardcoded path (not resource reference) because file_id forces VM replacement.
# The download_file resource above ensures the image exists via depends_on.
file_id = "local:iso/ubuntu-24.04-cloudimg-amd64.img"
interface = "virtio0"
size = 20
file_format = "qcow2"
discard = "on"
iothread = true
}
network_device {
bridge = "vmbr0"
firewall = false # NAT bridge isolation via NAT + host firewall
}
initialization {
datastore_id = "local"
ip_config {
ipv4 {
address = "10.10.10.100/24"
gateway = "10.10.10.1"
}
}
dns {
servers = ["8.8.8.8", "1.1.1.1"]
}
user_account {
username = "ubuntu"
keys = ["ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDO+Y8ns0RgUfR21POlIVsHD+Lp+x7cUBupqXsyMeVNZ claude@control-plane"]
}
}
}
output "test_vm_01_ip" {
description = "Test VM IP address (NAT behind bare_srv_1)"
value = "10.10.10.100"
}