vm/delete_all
dev
Remove unused virtual machines from prod config
Exit code: 2
2
0
data.proxmox_virtual_environment_vms.templates: Reading... proxmox_virtual_environment_file.cloud_config["komodo"]: Refreshing state... [id=local:snippets/komodo-cloud-init.yml] proxmox_virtual_environment_file.cloud_config["ipfabric"]: Refreshing state... [id=local:snippets/ipfabric-cloud-init.yml] data.proxmox_virtual_environment_vms.templates: Read complete after 0s [id=fc7ae11e-dcc7-47d0-ac64-9571211e1299] proxmox_virtual_environment_vm.vms["komodo"]: Refreshing state... [id=100] proxmox_virtual_environment_vm.vms["ipfabric"]: Refreshing state... [id=102] Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols: - destroy Terraform will perform the following actions: # proxmox_virtual_environment_file.cloud_config["ipfabric"] will be destroyed # (because key ["ipfabric"] is not in for_each map) - resource "proxmox_virtual_environment_file" "cloud_config" { - content_type = "snippets" -> null - datastore_id = "local" -> null - file_name = "ipfabric-cloud-init.yml" -> null - id = "local:snippets/ipfabric-cloud-init.yml" -> null - node_name = "pve01" -> null - overwrite = true -> null - timeout_upload = 1800 -> null - source_raw { - data = (sensitive value) -> null - file_name = "ipfabric-cloud-init.yml" -> null - resize = 0 -> null } } # proxmox_virtual_environment_file.cloud_config["komodo"] will be destroyed # (because key ["komodo"] is not in for_each map) - resource "proxmox_virtual_environment_file" "cloud_config" { - content_type = "snippets" -> null - datastore_id = "local" -> null - file_name = "komodo-cloud-init.yml" -> null - id = "local:snippets/komodo-cloud-init.yml" -> null - node_name = "pve01" -> null - overwrite = true -> null - timeout_upload = 1800 -> null - source_raw { - data = (sensitive value) -> null - file_name = "komodo-cloud-init.yml" -> null - resize = 0 -> null } } # proxmox_virtual_environment_vm.vms["ipfabric"] will be destroyed # (because key ["ipfabric"] is not in for_each map) - resource "proxmox_virtual_environment_vm" "vms" { - acpi = true -> null - bios = "seabios" -> null - boot_order = [] -> null - delete_unreferenced_disks_on_destroy = true -> null - id = "102" -> null - ipv4_addresses = [ - [ - "127.0.0.1", ], - [ - "192.168.1.161", - "192.168.1.127", ], - [], ] -> null - ipv6_addresses = [ - [ - "::1", ], - [ - "2a01:e0a:a9f:2700:be24:11ff:fe98:6ba7", - "fe80::be24:11ff:fe98:6ba7", ], - [ - "fe80::786d:fdff:fe56:38c2", ], ] -> null - keyboard_layout = "en-us" -> null - mac_addresses = [ - "00:00:00:00:00:00", - "BC:24:11:98:6B:A7", - "7A:6D:FD:56:38:C2", ] -> null - migrate = false -> null - name = "ipfabric.taila5ad8.ts.net" -> null - network_interface_names = [ - "lo", - "eth0", - "hairpin0", ] -> null - node_name = "pve01" -> null - on_boot = true -> null - protection = false -> null - purge_on_destroy = true -> null - reboot = false -> null - reboot_after_update = true -> null - scsi_hardware = "virtio-scsi-pci" -> null - started = true -> null - stop_on_destroy = true -> null - tablet_device = true -> null - tags = [ - "ipfabric", - "terraform-managed", - "vm", ] -> null - template = false -> null - timeout_clone = 1800 -> null - timeout_create = 1800 -> null - timeout_migrate = 1800 -> null - timeout_move_disk = 1800 -> null - timeout_reboot = 1800 -> null - timeout_shutdown_vm = 1800 -> null - timeout_start_vm = 1800 -> null - timeout_stop_vm = 300 -> null - vm_id = 102 -> null - agent { - enabled = true -> null - timeout = "15m" -> null - trim = false -> null - type = "virtio" -> null } - clone { - full = true -> null - retries = 1 -> null - vm_id = 9005 -> null } - cpu { - cores = 4 -> null - flags = [] -> null - hotplugged = 0 -> null - limit = 0 -> null - numa = false -> null - sockets = 1 -> null - type = "host" -> null - units = 0 -> null } - disk { - aio = "io_uring" -> null - backup = true -> null - cache = "none" -> null - datastore_id = "local-lvm" -> null - discard = "ignore" -> null - file_format = "raw" -> null - interface = "scsi0" -> null - iothread = false -> null - path_in_datastore = "vm-102-disk-0" -> null - replicate = true -> null - size = 128 -> null - ssd = false -> null } - initialization { - datastore_id = "local-lvm" -> null - interface = "ide2" -> null - user_data_file_id = "local:snippets/ipfabric-cloud-init.yml" -> null - dns { - servers = [ - "192.168.1.254", ] -> null } - ip_config { - ipv4 { - address = "192.168.1.161/24" -> null - gateway = "192.168.1.254" -> null } } } - memory { - dedicated = 16384 -> null - floating = 0 -> null - keep_hugepages = false -> null - shared = 0 -> null } - network_device { - bridge = "vmbr0" -> null - disconnected = false -> null - enabled = true -> null - firewall = false -> null - mac_address = "BC:24:11:98:6B:A7" -> null - model = "virtio" -> null - mtu = 0 -> null - queues = 0 -> null - rate_limit = 0 -> null - vlan_id = 0 -> null } - vga { - memory = 16 -> null - type = "serial0" -> null } } # proxmox_virtual_environment_vm.vms["komodo"] will be destroyed # (because key ["komodo"] is not in for_each map) - resource "proxmox_virtual_environment_vm" "vms" { - acpi = true -> null - bios = "seabios" -> null - boot_order = [] -> null - delete_unreferenced_disks_on_destroy = true -> null - id = "100" -> null - ipv4_addresses = [] -> null - ipv6_addresses = [] -> null - keyboard_layout = "en-us" -> null - mac_addresses = [ - "BC:24:11:7E:54:F9", ] -> null - migrate = false -> null - name = "komodo.taila5ad8.ts.net" -> null - network_interface_names = [] -> null - node_name = "pve01" -> null - on_boot = true -> null - protection = false -> null - purge_on_destroy = true -> null - reboot = false -> null - reboot_after_update = true -> null - scsi_hardware = "virtio-scsi-pci" -> null - started = false -> null - stop_on_destroy = true -> null - tablet_device = true -> null - tags = [ - "docker", - "terraform-managed", - "vm", ] -> null - template = false -> null - timeout_clone = 1800 -> null - timeout_create = 1800 -> null - timeout_migrate = 1800 -> null - timeout_move_disk = 1800 -> null - timeout_reboot = 1800 -> null - timeout_shutdown_vm = 1800 -> null - timeout_start_vm = 1800 -> null - timeout_stop_vm = 300 -> null - vm_id = 100 -> null - agent { - enabled = true -> null - timeout = "15m" -> null - trim = false -> null - type = "virtio" -> null } - clone { - full = true -> null - retries = 1 -> null - vm_id = 9004 -> null } - cpu { - cores = 16 -> null - flags = [] -> null - hotplugged = 0 -> null - limit = 0 -> null - numa = false -> null - sockets = 1 -> null - type = "host" -> null - units = 0 -> null } - disk { - aio = "io_uring" -> null - backup = true -> null - cache = "none" -> null - datastore_id = "local-lvm" -> null - discard = "ignore" -> null - file_format = "raw" -> null - interface = "scsi0" -> null - iothread = false -> null - path_in_datastore = "vm-100-disk-0" -> null - replicate = true -> null - size = 32 -> null - ssd = false -> null } - initialization { - datastore_id = "local-lvm" -> null - interface = "ide2" -> null - user_data_file_id = "local:snippets/komodo-cloud-init.yml" -> null - dns { - servers = [ - "192.168.1.254", ] -> null } - ip_config { - ipv4 { - address = "192.168.1.162/24" -> null - gateway = "192.168.1.254" -> null } } } - memory { - dedicated = 32768 -> null - floating = 0 -> null - keep_hugepages = false -> null - shared = 0 -> null } - network_device { - bridge = "vmbr0" -> null - disconnected = false -> null - enabled = true -> null - firewall = false -> null - mac_address = "BC:24:11:7E:54:F9" -> null - model = "virtio" -> null - mtu = 0 -> null - queues = 0 -> null - rate_limit = 0 -> null - vlan_id = 0 -> null } - vga { - memory = 16 -> null - type = "serial0" -> null } } Plan: 0 to add, 0 to change, 4 to destroy. Changes to Outputs: ~ vm_info = { - ipfabric = { - id = "102" - ip = "192.168.1.161" - mac = "BC:24:11:98:6B:A7" - name = "ipfabric.taila5ad8.ts.net" - node = "pve01" } - komodo = { - id = "100" - ip = "192.168.1.162" - mac = "BC:24:11:7E:54:F9" - name = "komodo.taila5ad8.ts.net" - node = "pve01" } } ───────────────────────────────────────────────────────────────────────────── Saved the plan to: tfplan To perform exactly these actions, run the following command to apply: terraform apply "tfplan"
No dependencies set.
The note is not visible to the blocked user.
Remove unused virtual machines from prod config
🔍 Terraform Plan
Exit code:
20= No changes2= Changes detectedClick to expand plan output