iac (Update): routeros runners use the lab image, passwords as env only, device names pinned #1704

Merged
ginjiruu merged 2 commits from routeros-runner-env into main 2026-11-17 00:18:24 +00:00
Owner

Stacked on #1703 (built on its branch routeros-tofurc): merge #1703 first, then this one.

Refs lab/iac#74 (merged as iac#119), lab/iac#98, lab/iac#50.

  • Runner image harbor.animeteamspeak.moe/library/tf-runner:v0.16.6-lab.1 (lab/tf-runner-image): stock tf-runner + bash, curl, jq, coreutils, which the rollback scripts need.
  • New routeros--env ExternalSecrets (store openbao): routeros_password, rollback_backup_password. Runner env: ROS_PASSWORD (provider), ROUTEROS_PASSWORD, ROLLBACK_BACKUP_PASSWORD, ROLLBACK_PEER_PASSWORD (peer router). The vars Secrets drop routeros_password: it is no longer a Terraform variable, so no password lands in state or saved plans. routeros-crs309-vars is deleted (nothing left in it) and the crs309 object loses varsFrom; mini prunes nothing, so delete the orphan ExternalSecret by hand after merge.
  • hostAliases: rb5009-a 10.15.1.252, rb5009-b 10.15.1.253, crs309 10.30.10.10 (iac#118 addresses), until DNS (iac#50). The provider connects by IP and still verifies the cert by name.

Needs before the env ExternalSecrets sync: OpenBao secret/routeros-secrets keys *_ROLLBACK_BACKUP_PASSWORD (pending a fresh OpenBao login). Objects stay suspended.

Server-side dry run on mini passes for all eight objects. Pre-push gate passed.

**Stacked on #1703** (built on its branch routeros-tofurc): merge #1703 first, then this one. Refs lab/iac#74 (merged as iac#119), lab/iac#98, lab/iac#50. - Runner image harbor.animeteamspeak.moe/library/tf-runner:v0.16.6-lab.1 (lab/tf-runner-image): stock tf-runner + bash, curl, jq, coreutils, which the rollback scripts need. - New routeros-<device>-env ExternalSecrets (store openbao): routeros_password, rollback_backup_password. Runner env: ROS_PASSWORD (provider), ROUTEROS_PASSWORD, ROLLBACK_BACKUP_PASSWORD, ROLLBACK_PEER_PASSWORD (peer router). The vars Secrets drop routeros_password: it is no longer a Terraform variable, so no password lands in state or saved plans. routeros-crs309-vars is deleted (nothing left in it) and the crs309 object loses varsFrom; mini prunes nothing, so delete the orphan ExternalSecret by hand after merge. - hostAliases: rb5009-a 10.15.1.252, rb5009-b 10.15.1.253, crs309 10.30.10.10 (iac#118 addresses), until DNS (iac#50). The provider connects by IP and still verifies the cert by name. Needs before the env ExternalSecrets sync: OpenBao secret/routeros-secrets keys *_ROLLBACK_BACKUP_PASSWORD (pending a fresh OpenBao login). Objects stay suspended. Server-side dry run on mini passes for all eight objects. Pre-push gate passed.
ConfigMap routeros-tofurc (copy of lab/iac routeros/tofu.rc) mounted at
/etc/tofu, TF_CLI_CONFIG_FILE on the routeros-rb5009-a/-b/-crs309 runners.
terraform-routeros/routeros then installs from
git.animeteamspeak.moe/lab/terraform-provider-routeros (public OCI provider
mirror, version 1.99.1+lab.1): upstream 1.99.1 plus the vrf read-only fix
(upstream PR #984), without which no routeros_ip_address can be updated in
place on RouterOS 7.21+.

Proven: tf-runner v0.16.6 (OpenTofu 1.12.1) inits the rb5009-a root with
this config and the new lock file (verified checksum).

Merge before lab/iac PR #117: its lock files pin 1.99.1+lab.1, which only the
mirror serves. All three objects stay suspended.
- image harbor.animeteamspeak.moe/library/tf-runner:v0.16.6-lab.1 (stock +
  bash curl jq coreutils) for the rollback scripts (lab/iac#74).
- routeros-<device>-env ExternalSecrets: routeros_password and
  rollback_backup_password, mapped to ROS_PASSWORD, ROUTEROS_PASSWORD,
  ROLLBACK_BACKUP_PASSWORD (+ ROLLBACK_PEER_PASSWORD from the peer). The
  vars Secrets drop the password, so it is never a Terraform variable and
  stays out of state and saved plans (lab/iac#98). crs309 has no vars left.
- hostAliases pin the three device names to 10.15.1.252/.253 and
  10.30.10.10 until DNS (lab/iac#50), so the cert still verifies by name.
Sign in to join this conversation.
No description provided.