use a template for turifer.dev zone file
This commit is contained in:
parent
5940f73370
commit
f8c5846692
5 changed files with 41 additions and 4 deletions
10
infra/dns.tf
10
infra/dns.tf
|
|
@ -28,5 +28,13 @@ data "ovh_domain_zone" "turifer_dev" {
|
|||
|
||||
resource "ovh_domain_zone_import" "turifer_dev_import" {
|
||||
zone_name = "turifer.dev"
|
||||
zone_file = file("./turifer.dev.zone")
|
||||
zone_file = local.turifer_dev_zone_file
|
||||
}
|
||||
|
||||
locals {
|
||||
turifer_dev_zone_file = templatefile("./templates/turifer.dev.zone", {
|
||||
crocus_ipv4_address = hcloud_server.crocus_server.ipv4_address
|
||||
crocus_ipv6_address = hcloud_server.crocus_server.ipv6_address
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue