Files
terraform-binarylane/README.md
T
unkin-agent 975ff15b6b
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/plan Pipeline was successful
Bootstrap gateways via a retrying wg handshake unit and guard servers against rebuilds
2026-10-12 21:57:40 +11:00

953 B

terraform-binarylane

Terraform/Terragrunt for BinaryLane cloud infrastructure.

Layout

environments/root.hcl                # consul state backend
environments/global/terragrunt.hcl
modules/binarylane/

make plan / make apply reconcile every unit. make pre-commit runs the hooks. State lives in Consul under infra/terraform/binarylane/<unit>/state.

Auth

The BinaryLane API token is read from kv/service/terraform/binarylane (field token) and passed in as TF_VAR_binarylane_token; Consul state creds come from consul_root/au/syd1/creds/terraform-binarylane. Both are granted to the terraform_binarylane AppRole and the woodpecker_terraform_binarylane k8s role in terraform-vault.

Gateways

mta1/mta2 bootstrap wg0 from a key in user_data (readable via the BinaryLane API); Puppet then manages wg0 from Vault, so rotate by replacing wireguard_asymmetric_key.gateway here and letting Puppet roll it out.