bundles/powerdns: only enable webserver and api on primary nameservers

This commit is contained in:
Franzi 2020-10-25 10:52:51 +01:00
parent 78c553faf9
commit 43bd6b4774
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -1,10 +1,6 @@
launch=
include-dir=/etc/powerdns/pdns.d
api=yes
api-key=${api_key}
webserver=yes
disable-syslog=yes
log-timestamp=no
@ -23,6 +19,10 @@ slave=yes
superslave=yes
allow-notify-from=${','.join(sorted(my_primary_servers['ips']))}
% else:
api=yes
api-key=${api_key}
webserver=yes
allow-notify-from=
master=yes
% endif