wip
This commit is contained in:
parent
a0c997dc23
commit
13444f1f33
2 changed files with 20 additions and 0 deletions
12
bundles/bind/files/zonefile
Normal file
12
bundles/bind/files/zonefile
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
$TTL 600
|
||||||
|
@ IN SOA ns.sublimity.de. admin.sublimity.de. (
|
||||||
|
2020080302 ;Serial
|
||||||
|
1200 ;Refresh
|
||||||
|
600 ;Retry
|
||||||
|
1209600 ;Expire
|
||||||
|
600 ;Negative response caching TTL
|
||||||
|
)
|
||||||
|
|
||||||
|
% for record in records:
|
||||||
|
${record[0].ljust(max_name)} IN ${record[1].ljust(max_type)} ${record[2]}
|
||||||
|
% endfor
|
|
@ -0,0 +1,8 @@
|
||||||
|
# for zone, records in node.metadata.get('bind/zones').items():
|
||||||
|
# files[f'/var/lib/bind/{zone}'] = {
|
||||||
|
# 'source': 'zonefile',
|
||||||
|
# 'content_type': 'mako',
|
||||||
|
# 'context': {
|
||||||
|
# 'records': records,
|
||||||
|
# }
|
||||||
|
# }
|
Loading…
Reference in a new issue