RouterOS #65: Terraform objects for the device roots (rb5009-a, rb5009-b, crs309) #1700
No reviewers
Labels
No labels
epic
fleet:hub
fleet:identity
fleet:ingress
fleet:offload
fleet:sveltos
needs-triage
ready-for-agent
ready-for-human
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
lab/clusters!1700
Loading…
Reference in a new issue
No description provided.
Delete branch "routeros-trees-65"
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 lab/iac#43. Completes lab/iac#65's controller side; activated at the cutover (lab/iac#73).
What lands
clusters/mini/iac/: three Terraform objects + their vars Secrets, shaped exactly likeharbor-config.yaml(same GitRepositoryiac,interval: 1h,approvePlan: "auto",storeReadablePlan: "human",branchPlanner.enablePathScope: true,serviceAccountName: tf-routeros, VAULT_ADDR/VAULT_CACERT + mountedlab-root-ca):routeros-crs309.yaml(+-vars.yaml)routeros-rb5009-a.yaml(+-vars.yaml)routeros-rb5009-b.yaml(+-vars.yaml)Each root gets its own state (controller default Secret per object, no
backendConfig, like harbor). Ordering is a comment, notdependsOn: crs309 first (it is the interlink, lab/iac#44 port map), then the routers, which plan clean against it.All three ship
suspend: truewith the reason on the line: applying to hardware before it exists would be wrong; un-suspend at the cutover (lab/iac#73).Vars: per-device ExternalSecrets via the same
vault-backendClusterSecretStore asharbor-config-vars, keysrouteros_password/pppoe_user/pppoe_passwordfrom therouteros-secretsKV (RB5009_A_PASSWORD,...,CRS309_PASSWORD,PPPOE_A_USER,PPPOE_A_PASSWORD, ...). The KV does not exist yet - the bootstrap renderer (#64) seeds the terraform-user password at bench prep, secret handling lives in lab/iac#68. Until seeded, the ExternalSecrets report NotReady; harmless while the objects are suspended, and a useful gate: no un-suspend before the KV exists.No plaintext secret anywhere; no runner RBAC changes needed (
tf-routerosSA + binding already exist inrunner-serviceaccounts.yaml).Verification
speckey-set diffed againstharbor-config.yaml: identical except the addedsuspend.task gateran green (c1 + test trees: "every child builds, every dependsOn resolves, no FAIL rule hit") - run withMC=/home/ginjiruu/Projects/Personal/lab/machine-configsbecause the worktree has no../machine-configssibling.