From 2464a34dc28d474db04847f6bc7fed455ca4858c Mon Sep 17 00:00:00 2001 From: Niklas van Schrick Date: Fri, 3 May 2024 22:37:22 +0200 Subject: [PATCH] Fix pages_domain module for domain on root --- modules/gitlab/pages_domain/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/gitlab/pages_domain/main.tf b/modules/gitlab/pages_domain/main.tf index 9cd8849..f18d476 100644 --- a/modules/gitlab/pages_domain/main.tf +++ b/modules/gitlab/pages_domain/main.tf @@ -48,7 +48,7 @@ resource "gitlab_pages_domain" "this" { //noinspection HILUnresolvedReference resource "cloudflare_record" "gitlab_pages_verification" { - name = "_gitlab-pages-verification-code.${var.cloudflare_domain_name}" + name = "_gitlab-pages-verification-code${var.cloudflare_domain_name == "@" ? "" : format(".%s", var.cloudflare_domain_name)}" type = "TXT" zone_id = var.cloudflare_zone_id value = gitlab_pages_domain.this.verification_code