Added Opnsense
Some checks failed
/ authentik (push) Failing after 2m7s
/ non-lab (push) Failing after 2m0s

This commit is contained in:
Chris Cowley 2025-04-15 12:01:56 +00:00
parent 539c8110dd
commit 88df812db9
10 changed files with 175 additions and 44 deletions

15
non-lab/kea.tf Normal file
View file

@ -0,0 +1,15 @@
resource "opnsense_kea_subnet" "subnets" {
for_each = var.dhcp_subnets
subnet = each.value
description = "${each.key} LAN"
}
resource "opnsense_kea_reservation" "esphome" {
for_each = { for i, v in var.esphome_boards : 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}"
}