Add k3s nucs to KEA and DNS
Some checks failed
/ authentik (push) Failing after 43s
/ non-lab (push) Failing after 14m34s

This commit is contained in:
Chris Cowley 2025-04-16 11:47:40 +02:00
parent 4d414c88f0
commit 05d4287d05
4 changed files with 94 additions and 1 deletions

View file

@ -13,3 +13,19 @@ resource "opnsense_kea_reservation" "esphome" {
mac_address = each.value.mac
description = "Lease for ${each.value.name}"
}
resource "opnsense_kea_reservation" "physical_home" {
for_each = { for i, v in var.physical_home : i => v }
subnet_id = opnsense_kea_subnet.subnets["home"].id
ip_address = each.value.address
mac_address = each.value.mac
description = "Lease for ${each.value.name}"
}
resource "opnsense_kea_reservation" "physical_lab" {
for_each = { for i, v in var.physical_lab : i => v }
subnet_id = opnsense_kea_subnet.subnets["lab"].id
ip_address = each.value.address
mac_address = each.value.mac
description = "Static IP for ${each.value.name}"
}