Epic: Router as code — MikroTik RB5009 pair managed by OpenTofu #43

Closed
opened 2026-11-05 16:59:31 +00:00 by ginjiruu · 2 comments
Owner

Router as code. Independent of the other epics; replaces the ER-X-SFP and the current switch.

Decisions

  • Two RB5009UPr+S+IN stacked (PoE-out on all ports for the Pis), both RouterOS.
  • Config as OpenTofu with terraform-routeros via tofu-controller (an independent review found the KCL->rsc->netinstall pattern unproven on devices and switch-only).
  • HA layout and SFP+ use decided before buying optics.

Children

  • lab/iac#44 — Hardware: two RB5009UPr+S+IN stacked in the mini rack
  • lab/iac#45 — Router config as OpenTofu (terraform-routeros) via tofu-controller
  • lab/iac#46 — Router HA: keep internet and LAN up while one RB5009 reboots

lab/clusters#1668 (DNS/DHCP behaviour the new router must carry over).

Router as code. Independent of the other epics; replaces the ER-X-SFP and the current switch. ## Decisions - Two **RB5009UPr+S+IN** stacked (PoE-out on all ports for the Pis), both RouterOS. - Config as **OpenTofu with terraform-routeros** via tofu-controller (an independent review found the KCL->rsc->netinstall pattern unproven on devices and switch-only). - HA layout and SFP+ use decided before buying optics. ## Children - [x] lab/iac#44 — Hardware: two RB5009UPr+S+IN stacked in the mini rack - [x] lab/iac#45 — Router config as OpenTofu (terraform-routeros) via tofu-controller - [x] lab/iac#46 — Router HA: keep internet and LAN up while one RB5009 reboots ## Related lab/clusters#1668 (DNS/DHCP behaviour the new router must carry over).
Author
Owner

router-as-code migrated into this repo (docs/routeros/, PR above). Tracker 001-011 = #63-#73; new #74 = armed rollback timer + cluster-confirmed applies. Device roots go in routeros/.

router-as-code migrated into this repo (docs/routeros/, PR above). Tracker 001-011 = #63-#73; new #74 = armed rollback timer + cluster-confirmed applies. Device roots go in routeros/.
Author
Owner

Closing: every listed child is done (#44-#46, #63-#70, #73 cutover, #74), and the RB5009 pair plus crs309 run from tofu-controller with clean plans. Follow-ups #71, #72, #79, #81 and #160 stay open on their own.

Closing: every listed child is done (#44-#46, #63-#70, #73 cutover, #74), and the RB5009 pair plus crs309 run from tofu-controller with clean plans. Follow-ups #71, #72, #79, #81 and #160 stay open on their own.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
lab/iac#43
No description provided.