fix: use fqdn as instance name
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2022-09-25 21:07:33 +02:00
parent de7bac4553
commit b0fd947abf
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0

View File

@ -48,7 +48,7 @@ resource "hcloud_server" "server" {
for_each = { for row in var.server : row.name => row }
depends_on = [hcloud_ssh_key.key]
name = each.value.name
name = "${each.value.name}.${try(each.value.dns_zone, var.server_dns_zone)}"
server_type = each.value.server_type
image = each.value.image
datacenter = each.value.datacenter