Commit c4e51a62 authored by Alex Hanselka's avatar Alex Hanselka
Browse files

fix: remove trailing dot for reverse DNS

parent 494c450a
Pipeline #3698 passed with stage
in 3 minutes and 18 seconds
......@@ -53,13 +53,13 @@ resource "hcloud_server_network" "network" {
resource "hcloud_rdns" "ipv4" {
server_id = "${hcloud_server.generic-hcloud.id}"
ip_address = "${hcloud_server.generic-hcloud.ipv4_address}"
dns_ptr = "${var.node_name}.${data.google_dns_managed_zone.dns-zone.dns_name}"
dns_ptr = "${var.node_name}.${replace(data.google_dns_managed_zone.dns-zone.dns_name, "/\.$/", "")}"
}
resource "hcloud_rdns" "ipv6" {
server_id = "${hcloud_server.generic-hcloud.id}"
ip_address = "${hcloud_server.generic-hcloud.ipv6_address}"
dns_ptr = "${var.node_name}.${data.google_dns_managed_zone.dns-zone.dns_name}"
dns_ptr = "${var.node_name}.${replace(data.google_dns_managed_zone.dns-zone.dns_name, "/\.$/", "")}"
}
resource "ansible_host" "hcloud-host" {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment