diff --git a/bind/config.sls b/bind/config.sls index ef50684..380fdbb 100644 --- a/bind/config.sls +++ b/bind/config.sls @@ -24,7 +24,6 @@ bind_restart: - user: {{ salt['pillar.get']('bind:config:user', map.user) }} - group: {{ salt['pillar.get']('bind:config:group', map.group) }} - mode: {{ salt['pillar.get']('bind:config:log_mode', map.log_mode) }} - - replace: False - require: - file: {{ map.log_dir }} @@ -82,6 +81,8 @@ bind_default_config: - user: root - group: root - mode: 644 + - context: + map: {{ map }} - watch_in: - service: bind_restart {% endif %} diff --git a/bind/files/suse/default b/bind/files/suse/default index adce6aa..b8a6997 100644 --- a/bind/files/suse/default +++ b/bind/files/suse/default @@ -1,3 +1,5 @@ +# This file is managed by salt - DO NOT EDIT! + {% set protocol = salt['pillar.get']('bind:config:protocol', False) -%} {% set param = [] -%} {% if protocol -%} @@ -5,7 +7,6 @@ {% endif -%} ## Path: Network/DNS/Name Server ## Description: Names server settings - ## Type: yesno ## Default: yes ## ServiceRestart: lwresd,named