fix: use fqdn as instance name
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
de7bac4553
commit
b0fd947abf
2
main.tf
2
main.tf
@ -48,7 +48,7 @@ resource "hcloud_server" "server" {
|
|||||||
for_each = { for row in var.server : row.name => row }
|
for_each = { for row in var.server : row.name => row }
|
||||||
depends_on = [hcloud_ssh_key.key]
|
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
|
server_type = each.value.server_type
|
||||||
image = each.value.image
|
image = each.value.image
|
||||||
datacenter = each.value.datacenter
|
datacenter = each.value.datacenter
|
||||||
|
Loading…
Reference in New Issue
Block a user