diff --git a/modules/infrastructure/hcloud.tf b/modules/infrastructure/hcloud.tf index 8dc6029..9126187 100644 --- a/modules/infrastructure/hcloud.tf +++ b/modules/infrastructure/hcloud.tf @@ -58,13 +58,20 @@ resource "hcloud_server" "nodes" { } } -resource "hcloud_rdns" "nodes_rdns" { +resource "hcloud_rdns" "nodes_rdns_ipv4" { for_each = local.hetzner_hosts server_id = hcloud_server.nodes[each.key].id ip_address = hcloud_server.nodes[each.key].ipv4_address dns_ptr = each.value.rdns } +resource "hcloud_rdns" "nodes_rdns_ipv6" { + for_each = local.hetzner_hosts + server_id = hcloud_server.nodes[each.key].id + ip_address = hcloud_server.nodes[each.key].ipv6_address + dns_ptr = each.value.rdns +} + locals { default_firewall_source_ips = [ "0.0.0.0/0", "::/0" ] }