mirror of
https://github.com/saltstack-formulas/bind-formula.git
synced 2025-04-15 17:20:21 +00:00
Merge pull request #5 from c0m4/patch2
change grains to os_family instead of os (typeo?)
This commit is contained in:
commit
acc79746ff
1 changed files with 9 additions and 1 deletions
|
@ -39,9 +39,11 @@ bind_local_config:
|
|||
- mode: {{ salt['pillar.get']('bind:config:mode', '644') }}
|
||||
- require:
|
||||
- pkg: bind
|
||||
- watch_in:
|
||||
- service: bind
|
||||
{% endif %}
|
||||
|
||||
{% if grains['os'] == 'Debian' %}
|
||||
{% if grains['os_family'] == 'Debian' %}
|
||||
bind_local_config:
|
||||
file:
|
||||
- managed
|
||||
|
@ -53,6 +55,8 @@ bind_local_config:
|
|||
- mode: {{ salt['pillar.get']('bind:config:mode', '644') }}
|
||||
- require:
|
||||
- pkg: bind
|
||||
- watch_in:
|
||||
- service: bind
|
||||
|
||||
bind_options_config:
|
||||
file:
|
||||
|
@ -65,6 +69,8 @@ bind_options_config:
|
|||
- mode: {{ salt['pillar.get']('bind:config:mode', '644') }}
|
||||
- require:
|
||||
- pkg: bind
|
||||
- watch_in:
|
||||
- service: bind
|
||||
|
||||
bind_default_zones:
|
||||
file:
|
||||
|
@ -77,6 +83,8 @@ bind_default_zones:
|
|||
- mode: {{ salt['pillar.get']('bind:config:mode', '644') }}
|
||||
- require:
|
||||
- pkg: bind
|
||||
- watch_in:
|
||||
- service: bind
|
||||
{% endif %}
|
||||
|
||||
{% for key,args in salt['pillar.get']('bind:configured_zones', {}).iteritems() -%}
|
||||
|
|
Loading…
Add table
Reference in a new issue