Files
homelab-infra/infrastructure/dns/templates/cloudflare.tf.j2
T
panxiao81 5241eceb0c
yaml / yaml (pull_request) Successful in 23s
terraform / validate (pull_request) Successful in 36s
ansible / collection-test (pull_request) Successful in 1m33s
ansible / lint (pull_request) Failing after 2m44s
feat(dns): 用模板生成各后端配置
2026-09-16 18:27:09 +00:00

12 lines
397 B
Django/Jinja

# Generated by infrastructure/dns/generate.py. Do not edit directly.
[% for record in records %]
resource "cloudflare_dns_record" "[[ record.terraform.resource_name ]]" {
zone_id = var.zone_id
name = "[[ record.name ]]"
type = "[[ record.type ]]"
content = "[[ record['values'][0] ]]"
proxied = [[ record.proxied | lower ]]
ttl = [[ record.ttl | default(1) ]]
}
[% endfor %]