feat(dns): 用模板生成各后端配置
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

This commit is contained in:
2026-09-16 18:27:09 +00:00
parent 5ba4411646
commit 5241eceb0c
11 changed files with 250 additions and 68 deletions
@@ -0,0 +1,11 @@
# 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 %]