infrastructure/terraform/context.tf
Jake Howard f88d224168
Some checks failed
/ terraform (push) Failing after 41s
/ ansible (push) Successful in 1m41s
Allow only exposing services over Tailscale
This works using public DNS, so doesn't need Tailscale's magic DNS to override my local.
2024-03-07 22:30:10 +00:00

11 lines
366 B
HCL

resource "local_file" "hosts" {
content = yamlencode({
vps_hosts : {
casey_ip : linode_instance.casey.ip_address,
private_ipv6_marker : local.private_ipv6_marker,
private_ipv6_range : local.private_ipv6_range,
walker_ip : vultr_instance.walker.main_ip,
}
})
filename = "${path.module}/../ansible/group_vars/all/vps-hosts.yml"
}