bundlewrap/bundles/bind/items.py
mwiegand 946b6c439a wip
2021-06-20 11:57:30 +02:00

16 lines
345 B
Python

directories['/var/lib/bind'] = {
'purge': True,
}
files['/etc/default/bind9'] = {
'source': 'defaults',
}
for zone, records in node.metadata.get('bind/zones').items():
files[f'/var/lib/bind/db.{zone}'] = {
'source': 'db',
'content_type': 'mako',
'context': {
'records': records,
}
}