fix(terraform): set OVMF bios, correct DNS domain, remove VLAN from interface
This commit is contained in:
@@ -29,6 +29,7 @@ data "proxmox_virtual_environment_vms" "templates" {
|
||||
|
||||
resource "proxmox_virtual_environment_vm" "vm" {
|
||||
name = var.hostname
|
||||
bios = "ovmf"
|
||||
vm_id = local.vm_id
|
||||
node_name = var.target_node
|
||||
|
||||
@@ -64,7 +65,7 @@ resource "proxmox_virtual_environment_vm" "vm" {
|
||||
network_device {
|
||||
bridge = var.bridge
|
||||
model = "virtio"
|
||||
vlan_id = var.vlan_id
|
||||
# vlan_id = var.vlan_id
|
||||
}
|
||||
|
||||
# VM stays STOPPED after clone.
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
variable "proxmox_api_url" {
|
||||
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" {
|
||||
@@ -26,7 +26,7 @@ variable "ip_address" {
|
||||
variable "dns_servers" {
|
||||
type = list(string)
|
||||
description = "DNS servers for the VM."
|
||||
default = ["10.1.71.102", "10.1.71.1"]
|
||||
default = ["10.1.71.1"]
|
||||
}
|
||||
|
||||
variable "search_domain" {
|
||||
|
||||
Reference in New Issue
Block a user