mirror of
https://github.com/saltstack-formulas/bind-formula.git
synced 2025-04-16 17:50:23 +00:00

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
12 lines
300 B
Text
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(' ') }}"
|
|
|