fix: replace deprecated cloudflare_record value with content
All checks were successful
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/build-package Pipeline was successful

This commit is contained in:
Robert Kaussow 2024-08-12 09:48:54 +02:00
parent d8dd625d3b
commit 3419ededa5
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0

View File

@ -116,7 +116,7 @@ resource "cloudflare_record" "serverv4" {
zone_id = var.cloudflare_zones[try(each.value.dns_zone, var.server_dns_zone)]
name = each.value.name
value = hcloud_server.server[each.value.name].ipv4_address
content = hcloud_server.server[each.value.name].ipv4_address
type = "A"
ttl = 1
}
@ -126,7 +126,7 @@ resource "cloudflare_record" "serverv6" {
zone_id = var.cloudflare_zones[try(each.value.dns_zone, var.server_dns_zone)]
name = each.value.name
value = hcloud_server.server[each.value.name].ipv6_address
content = hcloud_server.server[each.value.name].ipv6_address
type = "AAAA"
ttl = 1
}
@ -136,7 +136,7 @@ resource "cloudflare_record" "record" {
zone_id = each.value.zone_id
name = each.value.record_name
value = each.value.record_value
content = each.value.record_value
type = each.value.record_type
ttl = each.value.record_ttl
}