Initial terraform-infra: NetBox IPAM + networks + devices + Kea DHCP #5
Reference in New Issue
Block a user
Delete Branch "benvin/initial-infra"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Initial content for terraform-infra (renamed from terraform-ipam), bootstrapping YAML-driven infrastructure state for NetBox + Kea.
Schema
config/au/syd1/subnets/*.yaml): one file per subnet; renders a NetBox prefix and a matching Kea DHCP scope (pools, reservations) from the same definition.config/au/syd1/networks/*.yaml): logical network definitions carrying gateway/dns/search (capture only for now — consumer tracked in #3).config/au/syd1/devices/*.yaml): per-host intent —site,role,model_hint,networks,bootstrap_mac. Six hosts (prodnxsr0014-0019) seeded; the 13 existing hosts are tracked in #2.config/au/syd1/managed-ips.yaml): static address assignments.modules/infra/: NetBox (sites, prefixes, devices, interfaces, IPs) + Kea provider wiring; Terragrunt env underenvironments/au/syd1/..woodpecker/: plan (PR), apply (main), pre-commit.ci/puppetdb_backfill.py: reality import from PuppetDB (in-cluster only — automation tracked in #1).Discovery background
Follow-ups filed
Known plan blockers (expected CI failures until resolved)
kv/service/terraform/infra(netbox_token,kea_token) not seededhttps://claude.ai/code/session_01JUoARVdmhxKQHyyyp1pxeT
Seeding required before plan/apply can pass
Even with the vault child-token fix, the plan reads two provider tokens from Vault KV v2
kv/service/terraform/infra. Only a human can seed real tokens today (the NetBox secrets engine has not landed):Required keys:
netbox_token,kea_token. The read + metadata-read policy is added in terraform-vault PR #111 (blocked on the unrelated litellm plan breakage, terraform-vault#112). Plan also needs NetBox + KeaAPI deployed and the NetBox sitesyd1to exist.CI note: the
planstep failure is the expected environmental blocker set (terraform-vault #111 not merged/applied,kv/service/terraform/infraunseeded, NetBox/Kea not deployed) — not an HCL problem.tofu init -backend=false && tofu validatepasses locally on this branch (one deprecation warning forvault_kv_secret_v2data source, non-blocking). Pre-commit is green.https://claude.ai/code/session_01JUoARVdmhxKQHyyyp1pxeT
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.