From 13444f1f333dbcf1a31c899909974abd572f00da Mon Sep 17 00:00:00 2001 From: mwiegand Date: Fri, 18 Jun 2021 18:59:48 +0200 Subject: [PATCH] wip --- bundles/bind/files/zonefile | 12 ++++++++++++ bundles/bind/items.py | 8 ++++++++ 2 files changed, 20 insertions(+) create mode 100644 bundles/bind/files/zonefile diff --git a/bundles/bind/files/zonefile b/bundles/bind/files/zonefile new file mode 100644 index 0000000..2256061 --- /dev/null +++ b/bundles/bind/files/zonefile @@ -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 diff --git a/bundles/bind/items.py b/bundles/bind/items.py index e69de29..adc77e5 100644 --- a/bundles/bind/items.py +++ b/bundles/bind/items.py @@ -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, +# } +# }