create pve_vm module

This commit is contained in:
Vezpi 2025-03-23 20:26:37 +00:00
parent d24c18ebcb
commit fdaa406a94
9 changed files with 16 additions and 5 deletions

View File

@ -1,5 +0,0 @@
node_name = "zenith"
vm_name = "zenith-vm"
vm_cpu = 2
vm_ram = 2048
vm_vlan = 66

View File

@ -0,0 +1,14 @@
module "pve_vm" {
source = "../../modules/pve_vm"
proxmox_endpoint = var.proxmox_endpoint
proxmox_api_token = var.proxmox_api_token
node_name = "zenith"
vm_name = "zenith-vm"
vm_cpu = 2
vm_ram = 2048
vm_vlan = 66
}
output "vm_ip" {
value = module.pve_vm.vm_ip
}

View File

@ -0,0 +1,2 @@
variable "proxmox_endpoint" {}
variable "proxmox_api_token" {}