Commit d24ad3a7 authored by Alex Hanselka's avatar Alex Hanselka
Browse files

feat: change to using a subdomain for these sorts of hostnames

parent 54d9cea1
Pipeline #3577 passed with stage
in 3 minutes and 29 seconds
......@@ -93,12 +93,12 @@ resource "ansible_host" "hcloud-host" {
ansible_user = "root"
ansible_host = "${hcloud_server.generic-hcloud.ipv4_address}"
wireguard_address = "${var.wireguard_address}"
wireguard_endpoint = "${var.node_name}.${data.google_dns_managed_zone.darkdna.dns_name}"
wireguard_endpoint = "${var.node_name}.hc.${data.google_dns_managed_zone.darkdna.dns_name}"
}
}
resource "google_dns_record_set" "external" {
name = "${var.node_name}.${data.google_dns_managed_zone.darkdna.dns_name}"
name = "${var.node_name}.hc.${data.google_dns_managed_zone.darkdna.dns_name}"
type = "A"
ttl = 3600
managed_zone = "${data.google_dns_managed_zone.darkdna.name}"
......@@ -106,7 +106,7 @@ resource "google_dns_record_set" "external" {
}
resource "google_dns_record_set" "external-v6" {
name = "${var.node_name}.${data.google_dns_managed_zone.darkdna.dns_name}"
name = "${var.node_name}.hc.${data.google_dns_managed_zone.darkdna.dns_name}"
type = "AAAA"
ttl = 3600
managed_zone = "${data.google_dns_managed_zone.darkdna.name}"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment