bundles/powerdns: only enable webserver and api on primary nameservers
This commit is contained in:
parent
78c553faf9
commit
43bd6b4774
1 changed files with 4 additions and 4 deletions
|
@ -1,10 +1,6 @@
|
||||||
launch=
|
launch=
|
||||||
include-dir=/etc/powerdns/pdns.d
|
include-dir=/etc/powerdns/pdns.d
|
||||||
|
|
||||||
api=yes
|
|
||||||
api-key=${api_key}
|
|
||||||
webserver=yes
|
|
||||||
|
|
||||||
disable-syslog=yes
|
disable-syslog=yes
|
||||||
log-timestamp=no
|
log-timestamp=no
|
||||||
|
|
||||||
|
@ -23,6 +19,10 @@ slave=yes
|
||||||
superslave=yes
|
superslave=yes
|
||||||
allow-notify-from=${','.join(sorted(my_primary_servers['ips']))}
|
allow-notify-from=${','.join(sorted(my_primary_servers['ips']))}
|
||||||
% else:
|
% else:
|
||||||
|
api=yes
|
||||||
|
api-key=${api_key}
|
||||||
|
webserver=yes
|
||||||
|
|
||||||
allow-notify-from=
|
allow-notify-from=
|
||||||
master=yes
|
master=yes
|
||||||
% endif
|
% endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue