feat(terraform): add Proxmox VM and Unifi DHCP modules (Phase 2)
This commit is contained in:
12
terraform/unifi/dhcp/main.tf
Normal file
12
terraform/unifi/dhcp/main.tf
Normal file
@@ -0,0 +1,12 @@
|
||||
# ─── DHCP Static Reservation ─────────────────────────────────────────────────
|
||||
# Creates a fixed IP assignment on the UDM Pro for the newly provisioned VM.
|
||||
# Triggered by n8n after Proxmox VM creation returns the MAC address.
|
||||
|
||||
resource "unifi_user" "vm" {
|
||||
name = var.hostname
|
||||
mac = lower(var.mac_address)
|
||||
fixed_ip = var.ip_address
|
||||
network_id = var.network_id
|
||||
|
||||
note = "Managed by mk-labs pipeline"
|
||||
}
|
||||
Reference in New Issue
Block a user