Skip to content

Commit

Permalink
Fix cloudflare deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Taucher2003 committed Aug 21, 2024
1 parent 36c6d57 commit 14888ae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions modules/gitlab/pages_domain/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ resource "cloudflare_record" "gitlab_pages" {
name = var.cloudflare_domain_name
type = "CNAME"
zone_id = var.cloudflare_zone_id
value = var.gitlab_unique_pages_url
content = var.gitlab_unique_pages_url
proxied = true
comment = "Managed by Terraform"
}
Expand Down Expand Up @@ -51,6 +51,6 @@ resource "cloudflare_record" "gitlab_pages_verification" {
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
content = gitlab_pages_domain.this.verification_code
comment = "Managed by Terraform | Pages verification for ${cloudflare_record.gitlab_pages.hostname}"
}
6 changes: 3 additions & 3 deletions system/domain/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -46,22 +46,22 @@ resource "cloudflare_record" "github_verification" {
name = "_github-challenge-code0-tech-org"
type = "TXT"
zone_id = data.cloudflare_zone.main_domain.id
value = "e3447326f4"
content = "e3447326f4"
comment = "Managed by Terraform"
}

resource "cloudflare_record" "strato_spf" {
name = "@"
type = "TXT"
zone_id = data.cloudflare_zone.main_domain.id
value = "v=spf1 redirect=smtp.strato.de"
content = "v=spf1 redirect=smtp.strato.de"
comment = "Managed by Terraform"
}

resource "cloudflare_record" "strato_dkim" {
name = "strato-dkim-0002._domainkey"
type = "CNAME"
zone_id = data.cloudflare_zone.main_domain.id
value = "strato-dkim-0002._domainkey.strato.de"
content = "strato-dkim-0002._domainkey.strato.de"
comment = "Managed by Terraform"
}

0 comments on commit 14888ae

Please sign in to comment.