bundles/powerdns: put ip addresses of secondary nameservers into allow-axfer-ips
Some checks failed
bundlewrap/pipeline/head There was a failure building this commit

This commit is contained in:
Franzi 2020-10-25 10:56:55 +01:00
parent 152bb56fdd
commit 29f488c082
Signed by: kunsi
GPG key ID: 12E3D2136B818350
2 changed files with 3 additions and 0 deletions

View file

@ -25,5 +25,7 @@ api-key=${api_key}
webserver=yes webserver=yes
allow-notify-from= allow-notify-from=
master=yes master=yes
allow-axfr-ips=${','.join(sorted(my_secondary_servers))}
% endif % endif

View file

@ -54,6 +54,7 @@ files = {
'my_hostname': node.metadata['powerdns'].get('my_hostname', node.name), 'my_hostname': node.metadata['powerdns'].get('my_hostname', node.name),
'is_secondary': node.metadata['powerdns'].get('is_secondary', False), 'is_secondary': node.metadata['powerdns'].get('is_secondary', False),
'my_primary_servers': node.metadata['powerdns'].get('my_primary_servers', {}), 'my_primary_servers': node.metadata['powerdns'].get('my_primary_servers', {}),
'my_secondary_servers': node.metadata['powerdns'].get('my_secondary_servers', {}),
}, },
'needs': { 'needs': {
'pkg_apt:pdns-server', 'pkg_apt:pdns-server',