Skip to content
Snippets Groups Projects
Verified Commit 7ec1c8dd authored by Sheogorath's avatar Sheogorath :european_castle:
Browse files

terraform: Add app DNS entires

With nginx-ingress in place (or any other ingress-controller), this
patch provides the required DNS entires that can be used directly or as
part of a CNAME entry.
parent 11fcb6aa
No related branches found
No related tags found
No related merge requests found
...@@ -5,3 +5,20 @@ resource "cloudflare_record" "dns_a_api" { ...@@ -5,3 +5,20 @@ resource "cloudflare_record" "dns_a_api" {
type = "A" type = "A"
ttl = 300 ttl = 300
} }
resource "cloudflare_record" "dns_a_apps" {
zone_id = var.dns_zone_id
name = "apps.${var.dns_domain}"
value = hcloud_load_balancer.lb.ipv4
type = "A"
ttl = 300
}
resource "cloudflare_record" "dns_a_apps_wildcard" {
zone_id = var.dns_zone_id
name = "*.apps.${var.dns_domain}"
value = hcloud_load_balancer.lb.ipv4
type = "A"
ttl = 300
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment