fix(terraform): set OVMF bios, correct DNS domain, remove VLAN from interface

This commit is contained in:
2026-02-27 19:56:15 -06:00
parent 7e0b0a859b
commit 4964552483
2 changed files with 4 additions and 3 deletions

View File

@@ -29,6 +29,7 @@ data "proxmox_virtual_environment_vms" "templates" {
resource "proxmox_virtual_environment_vm" "vm" { resource "proxmox_virtual_environment_vm" "vm" {
name = var.hostname name = var.hostname
bios = "ovmf"
vm_id = local.vm_id vm_id = local.vm_id
node_name = var.target_node node_name = var.target_node
@@ -64,7 +65,7 @@ resource "proxmox_virtual_environment_vm" "vm" {
network_device { network_device {
bridge = var.bridge bridge = var.bridge
model = "virtio" model = "virtio"
vlan_id = var.vlan_id # vlan_id = var.vlan_id
} }
# VM stays STOPPED after clone. # VM stays STOPPED after clone.

View File

@@ -2,7 +2,7 @@
variable "proxmox_api_url" { variable "proxmox_api_url" {
type = string type = string
description = "Proxmox API endpoint URL (e.g., https://fantasyland.mk-labs.net:8006)" description = "Proxmox API endpoint URL (e.g., https://fantasyland.local.mk-labs.cloud:8006)"
} }
variable "proxmox_api_token" { variable "proxmox_api_token" {
@@ -26,7 +26,7 @@ variable "ip_address" {
variable "dns_servers" { variable "dns_servers" {
type = list(string) type = list(string)
description = "DNS servers for the VM." description = "DNS servers for the VM."
default = ["10.1.71.102", "10.1.71.1"] default = ["10.1.71.1"]
} }
variable "search_domain" { variable "search_domain" {