infrastructure/terraform/context.tf

12 lines
370 B
Terraform
Raw Normal View History

resource "local_file" "hosts" {
2020-02-21 22:16:08 +00:00
content = yamlencode({
vps_hosts : {
2022-01-21 21:52:21 +00:00
casey_ip : linode_instance.casey.ip_address,
private_ipv6_marker : local.private_ipv6_marker,
private_ipv6_range : local.private_ipv6_range,
2024-05-04 13:20:15 +01:00
walker_ip : hcloud_server.walker.ipv4_address,
2020-02-21 22:16:08 +00:00
}
})
filename = "${path.module}/../ansible/group_vars/all/vps-hosts.yml"
}