From 813fa3adb5fe9ac4c90a796fc96c09aa1d65f6ae Mon Sep 17 00:00:00 2001
From: GitHub Actions <actions@github.com>
Date: Sat, 21 Dec 2024 06:05:26 +0000
Subject: [PATCH] Add VM Tester2 configuration

---
 terraform/proxmox/Tester2.tf | 51 ++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)
 create mode 100644 terraform/proxmox/Tester2.tf

diff --git a/terraform/proxmox/Tester2.tf b/terraform/proxmox/Tester2.tf
new file mode 100644
index 00000000..b30c32e4
--- /dev/null
+++ b/terraform/proxmox/Tester2.tf
@@ -0,0 +1,51 @@
+resource "proxmox_virtual_environment_vm" "Tester2" {
+    node_name    = "prox"
+    vm_id        = "5997"
+    name         = "Tester2"
+    description  = "This is a test VM"
+
+    cpu {
+        cores = "2"
+        type  = "host"
+        architecture = "x86_64"
+    }
+
+    memory {
+        dedicated = "2048"
+    }
+
+    network_device {
+        bridge  = "vmbr0"
+        vlan_id = null
+    }
+
+    disk {
+        datastore_id = "Fast2Tb"
+        size         = "20"
+        interface    = "scsi0"
+    }
+
+    clone {
+        vm_id = "9996"
+    }
+
+    initialization {
+        ip_config {
+            ipv4 {
+                address = "dhcp"
+                gateway = null
+            }
+        }
+
+        user_data_file_id = proxmox_virtual_environment_file.cloud_config.id
+    }
+
+    lifecycle {
+    ignore_changes = [
+      initialization[0].user_account[0].keys,
+      initialization[0].user_account[0].password,
+      initialization[0].user_account[0].username,
+      initialization[0].user_data_file_id
+    ]
+  }
+}