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,12 @@
[% for record in records %]
[[ record.name | replace('.', '-') ]].server: |
[[ record.name ]]:53 {
errors
template IN A {
answer "{{ .Name }} 60 IN A [[ record['values'][0] ]]"
}
template IN AAAA {
rcode NOERROR
}
}
[% endfor %]