From a93a6c8413f7cce892a20889aee526fd26b59cb3 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Sat, 21 Dec 2024 04:26:25 +0000 Subject: [PATCH] Add VM test configuration --- terraform/proxmox/test.tf | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 terraform/proxmox/test.tf diff --git a/terraform/proxmox/test.tf b/terraform/proxmox/test.tf new file mode 100644 index 0000000..c65620c --- /dev/null +++ b/terraform/proxmox/test.tf @@ -0,0 +1,39 @@ +resource "proxmox_virtual_environment_vm" "test" { + node_name = "prox" + vm_id = "9996" + name = "test" + description = "test" + + cpu { + cores = "2" + type = "host" + } + + memory { + dedicated = "2048" + } + + network_device { + bridge = "vmbr0" + vlan_id = "1" + } + + disk { + datastore_id = "Fast2Tb" + size = "20" + } + + clone { + vm_id = "9996" + } + + initialization { + ip_config { + ipv4 { + address = "dhcp" + } + } + + user_data_file_id = proxmox_virtual_environment_file.cloud_config.id + } +}