infrastructure/terraform/context.tf
Jake Howard 9fee5c01ef
All checks were successful
/ terraform (push) Successful in 1m30s
/ ansible (push) Successful in 2m48s
Create new walker on Hetzner
2024-05-04 13:20:15 +01:00

11 lines
370 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 : hcloud_server.walker.ipv4_address,
}
})
filename = "${path.module}/../ansible/group_vars/all/vps-hosts.yml"
}