Improve dns
This commit is contained in:
parent
48a4f72e4f
commit
5d10e75ade
3 changed files with 41 additions and 19 deletions
modules/infrastructure
|
@ -2,6 +2,8 @@ output "hosts" {
|
|||
value = {
|
||||
for subdomain in distinct([for record in ovh_domain_zone_record.server_records : record.subdomain]) :
|
||||
subdomain => {
|
||||
"hostname" = subdomain
|
||||
"fqdn" = "${subdomain}.${ovh_domain_zone_record.server_records["${subdomain}:ipv4"].zone}"
|
||||
"ipv4_address" = try(
|
||||
ovh_domain_zone_record.server_records["${subdomain}:ipv4"].target,
|
||||
null
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue