RouterOS 003: Terraform trees per device + tofu-controller objects #65
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
lab/iac#65
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Part of #43
Refs: lab/iac#45
Migrated from router-as-code tracker 003 (docs/routeros/tracker in this repo history). Research notes: docs/routeros/notes/.
Where the config of record lives. Follow the pattern already running for
vault/harbor/kanidm: HCL in the
iacrepo underrouter/<device>/, FluxTerraformobjects in flux-clustersclusters/mini/iac/(seevault-config.yamlfor the shape:approvePlan: auto, 1h interval,storeReadablePlan: human,varsFromSecret, GitRepositoryiac).Scope
router/rb5009-a/,router/rb5009-b/,router/crs309/. Provider blocks per device:hosturl = "https://<mgmt-ip>",usernamefrom vars,passwordfromSecret,
insecureorca_certificatepinned to the bootstrap cert,routeros_versionpinned.required_providerspinterraform-routeros/routerosto a tested version;provider upgrades are their own MR, with sim (#001) first.
periodic plan is the drift detector. Ordering: crs309 depends_on nothing;
routers plan clean against it (interlink is the CRS309, see iac#44 port map).
(see #006).
Done when
planclean on all three for aweek (iac#45 criterion).
ginjiruu referenced this issue from lab/machine-configs2026-11-14 02:04:23 +00:00
Lab verification: roots rb5009-a/rb5009-b both plan pure creates (168 add / 0 change / 0 destroy) against boot-state lab routers via REST; guard OK; details in PR #111 comment. crs309 remains untestable in lab (labsw is a Linux bridge), bench-scoped.