iac (Update): routeros runners install the provider from the lab fork OCI mirror #1703

Closed
ginjiruu wants to merge 1 commit from routeros-tofurc into main
Owner

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, 1.99.1+lab.1 = upstream 1.99.1 + the vrf read-only fix, upstream PR #984). Without it 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). Pre-push gate green.

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.

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, 1.99.1+lab.1 = upstream 1.99.1 + the vrf read-only fix, upstream PR #984). Without it 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). Pre-push gate green. **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.
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.
Author
Owner

Second commit: each routeros runner gets a hostAliases entry, device name -> management address (rb5009-a 10.30.10.2, rb5009-b 10.30.10.3, crs309 10.30.10.10). The bootstrap certs carry the names, so TLS verifies by name with no cert re-issue or re-image. Remove once host-level DNS (lab/iac#50) serves net.caosh. Server dry-run against the live CRD: accepted.

Second commit: each routeros runner gets a hostAliases entry, device name -> management address (rb5009-a 10.30.10.2, rb5009-b 10.30.10.3, crs309 10.30.10.10). The bootstrap certs carry the names, so TLS verifies by name with no cert re-issue or re-image. Remove once host-level DNS (lab/iac#50) serves net.caosh. Server dry-run against the live CRD: accepted.
Each routeros runner maps its device name to the management address of the
ADR-0008 plan: rb5009-a 10.30.10.2, rb5009-b 10.30.10.3, crs309 10.30.10.10
(the switch's DHCP reservation, lab/iac PR #117). The roots connect by name
(routeros_host default) and the bootstrap's www-ssl cert carries that name,
so TLS verifies without re-issuing certs or re-imaging. Remove once
host-level DNS serves net.caosh (lab/iac#50).
Author
Owner

Merged into main through #1704, which was built on this branch (main 907771e8). The routeros-tofurc ConfigMap and the runner env/volumes are live on mini.

Merged into main through #1704, which was built on this branch (main 907771e8). The routeros-tofurc ConfigMap and the runner env/volumes are live on mini.
Author
Owner

Note for the session that owns this PR: commit 186a13ff (tofu.rc) is in main via #1704, which was built on it. The newer commit f96a500f (hostAliases) is NOT merged and now conflicts: #1704 already added hostAliases to all three objects, and lists ALL three names in every object (the #74 rollback arm checks the peer router by name):

  • rb5009-a.net.caosh -> 10.15.1.252, rb5009-b -> 10.15.1.253 (each router legacy-LAN address from iac#118; mini sits on that LAN, so no routing in the path), crs309 -> 10.30.10.10.

If the VLAN 10 addresses (10.30.10.2/.3) are preferred, change them in main instead of merging f96a500f, and keep all three names per object. Also check the crs309 overlap: iac#118 gives the switch a static vlan10-mgmt 10.30.10.10/24, and your commit message mentions a DHCP reservation for the same address in iac#117.

Note for the session that owns this PR: commit 186a13ff (tofu.rc) is in main via #1704, which was built on it. The newer commit f96a500f (hostAliases) is NOT merged and now conflicts: #1704 already added hostAliases to all three objects, and lists ALL three names in every object (the #74 rollback arm checks the peer router by name): - rb5009-a.net.caosh -> 10.15.1.252, rb5009-b -> 10.15.1.253 (each router legacy-LAN address from iac#118; mini sits on that LAN, so no routing in the path), crs309 -> 10.30.10.10. If the VLAN 10 addresses (10.30.10.2/.3) are preferred, change them in main instead of merging f96a500f, and keep all three names per object. Also check the crs309 overlap: iac#118 gives the switch a static vlan10-mgmt 10.30.10.10/24, and your commit message mentions a DHCP reservation for the same address in iac#117.
Author
Owner

Superseded by #1704: its first commit (routeros-tofurc ConfigMap, TF_CLI_CONFIG_FILE) is on main, and #1704 pins all three device names per runner via hostAliases (needed by the rollback peer check), which replaces this PR's second commit. Closing.

Superseded by #1704: its first commit (routeros-tofurc ConfigMap, TF_CLI_CONFIG_FILE) is on main, and #1704 pins all three device names per runner via hostAliases (needed by the rollback peer check), which replaces this PR's second commit. Closing.
ginjiruu closed this pull request 2026-11-17 01:50:28 +00:00

Pull request closed

Sign in to join this conversation.
No description provided.