feat: add api token
Signed-off-by: Lander Van den Bulcke <landervandenbulcke@gmail.com>
This commit is contained in:
parent
96782c6cc4
commit
a2c9418765
7 changed files with 60 additions and 49 deletions
|
|
@ -16,7 +16,7 @@ data "cloudflare_zone" "escapeangle" {
|
|||
}
|
||||
|
||||
resource "cloudflare_dns_record" "mail-a" {
|
||||
zone_id = data.cloudflare_zone.escapeangle.id
|
||||
zone_id = data.cloudflare_zone.escapeangle.zone_id
|
||||
|
||||
name = "mail.escapeangle.com"
|
||||
content = hcloud_floating_ip.mail.ip_address
|
||||
|
|
@ -25,7 +25,7 @@ resource "cloudflare_dns_record" "mail-a" {
|
|||
}
|
||||
|
||||
resource "cloudflare_dns_record" "mail-mx" {
|
||||
zone_id = data.cloudflare_zone.escapeangle.id
|
||||
zone_id = data.cloudflare_zone.escapeangle.zone_id
|
||||
|
||||
name = "escapeangle.com"
|
||||
content = "mail.escapeangle.com"
|
||||
|
|
@ -35,7 +35,7 @@ resource "cloudflare_dns_record" "mail-mx" {
|
|||
}
|
||||
|
||||
resource "cloudflare_dns_record" "mail-spf" {
|
||||
zone_id = data.cloudflare_zone.escapeangle.id
|
||||
zone_id = data.cloudflare_zone.escapeangle.zone_id
|
||||
|
||||
name = "escapeangle.com"
|
||||
content = "v=spf1 a:mail.escapeangle.com -all"
|
||||
|
|
@ -44,7 +44,7 @@ resource "cloudflare_dns_record" "mail-spf" {
|
|||
}
|
||||
|
||||
resource "cloudflare_dns_record" "mail-dkim" {
|
||||
zone_id = data.cloudflare_zone.escapeangle.id
|
||||
zone_id = data.cloudflare_zone.escapeangle.zone_id
|
||||
|
||||
name = "mail._domainkey.escapeangle.com"
|
||||
content = "v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDJEouqeGAu4u4+UJY6NfdiwIoRghb4nJksa3CEZKGgy5CHJrjZ68urRzeKJPkGau8bK/yW9vte4VJ4IlIStdmkwSNqwdnBB/klTW1WZijhpKgN7rTioitQz2B2gJzOt7m1fbt9+BCLiPCmz8V3HNm36DHr+N7a69py7K8YlzZnPQIDAQAB"
|
||||
|
|
@ -53,7 +53,7 @@ resource "cloudflare_dns_record" "mail-dkim" {
|
|||
}
|
||||
|
||||
resource "cloudflare_dns_record" "mail-dmarc" {
|
||||
zone_id = data.cloudflare_zone.escapeangle.id
|
||||
zone_id = data.cloudflare_zone.escapeangle.zone_id
|
||||
|
||||
name = "_dmarc.escapeangle.com"
|
||||
content = "v=DMARC1; p=none"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue