Add rdns to ipv6 addresses

Co-Authored-By: Manuel <git@huesers.de>
This commit is contained in:
Tobias Reisinger 2024-11-14 20:30:39 +01:00
parent 3ce28b14b4
commit 8a420a5c35
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE

View file

@ -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" ]
}