iac (Update): routeros runners install the provider from the lab fork OCI mirror #1703
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!1703
Loading…
Reference in a new issue
No description provided.
Delete branch "routeros-tofurc"
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?
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.
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.
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.Note for the session that owns this PR: commit
186a13ff(tofu.rc) is in main via #1704, which was built on it. The newer commitf96a500f(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):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.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.
Pull request closed