Commit 0f942be1 authored by Mike Horwath's avatar Mike Horwath
Browse files

cleanup in all asiles

parent 0ffa2419
Pipeline #102 failed with stages
in 13 seconds
resource "cloudflare_record" "proxy_ipv4" {
count = "${length(keys(var.proxy_hosts_ipv4))}"
domain = "${var.domain}"
name = "${element(keys(var.proxy_hosts_ipv4), count.index)}"
value = "${element(values(var.proxy_hosts_ipv4), count.index)}"
type = "A"
proxied = true
}
resource "cloudflare_record" "proxy_ipv6" {
count = "${length(keys(var.proxy_hosts_ipv6))}"
domain = "${var.domain}"
name = "${element(keys(var.proxy_hosts_ipv6), count.index)}"
value = "${element(values(var.proxy_hosts_ipv6), count.index)}"
type = "AAAA"
proxied = true
}
resource "cloudflare_record" "noproxy_ipv4" {
count = "${length(keys(var.noproxy_hosts_ipv4))}"
domain = "${var.domain}"
name = "${element(keys(var.noproxy_hosts_ipv4), count.index)}"
value = "${element(values(var.noproxy_hosts_ipv4), count.index)}"
type = "A"
proxied = false
}
resource "cloudflare_record" "noproxy_ipv6" {
count = "${length(keys(var.noproxy_hosts_ipv6))}"
domain = "${var.domain}"
name = "${element(keys(var.noproxy_hosts_ipv6), count.index)}"
value = "${element(values(var.noproxy_hosts_ipv6), count.index)}"
type = "AAAA"
proxied = false
}
resource "cloudflare_record" "proxy_cname" {
count = "${length(keys(var.proxy_cnames))}"
domain = "${var.domain}"
name = "${element(keys(var.proxy_cnames), count.index)}"
value = "${element(values(var.proxy_cnames), count.index)}"
type = "CNAME"
proxied = true
}
resource "cloudflare_record" "noproxy_cname" {
count = "${length(keys(var.noproxy_cnames))}"
domain = "${var.domain}"
name = "${element(keys(var.noproxy_cnames), count.index)}"
value = "${element(values(var.noproxy_cnames), count.index)}"
type = "CNAME"
proxied = false
}
resource "cloudflare_record" "mx" {
count = "${length(var.mx_records)}"
domain = "${var.domain}"
name = "${element(var.mx_records[count.index], 0)}"
value = "${element(var.mx_records[count.index], 1)}"
priority = "${element(var.mx_records[count.index], 2)}"
type = "MX"
proxied = false
}
resource "cloudflare_record" "spf_record" {
count = "${length(keys(var.spf_records))}"
domain = "${var.domain}"
name = "${element(keys(var.spf_records), count.index)}"
value = "${element(values(var.spf_records), count.index)}"
type = "SPF"
}
resource "cloudflare_record" "text_record" {
count = "${length(keys(var.text_records))}"
domain = "${var.domain}"
name = "${element(keys(var.text_records), count.index)}"
value = "${element(values(var.text_records), count.index)}"
type = "TXT"
}
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