bind-formula/bind/files/debian/default
blacksmith77 c14e5ac477 dirty value in /etc/default/bind9
when bind.config.protocol is set in pillar, "None" is returned by  param.append('-' + protocol|string) statement and written in /etc/default/bind9.
This breaks bind9 at start
2016-04-15 16:20:10 +02:00

12 lines
300 B
Text

{% set protocol = salt['pillar.get']('bind:config:protocol', False) -%}
{% set param = ['-u bind'] -%}
{% if protocol -%}
{% do param.append('-' + protocol|string) -%}
{% endif -%}
# run resolvconf?
RESOLVCONF=no
# startup options for the server
# force ipv4 only
OPTIONS="{{ param|join(' ') }}"