mirror of
https://github.com/saltstack-formulas/bind-formula.git
synced 2025-04-16 01:30:22 +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') }}
|
- mode: {{ salt['pillar.get']('bind:config:mode', '644') }}
|
||||||
- require:
|
- require:
|
||||||
- pkg: bind
|
- pkg: bind
|
||||||
|
- watch_in:
|
||||||
|
- service: bind
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if grains['os'] == 'Debian' %}
|
{% if grains['os_family'] == 'Debian' %}
|
||||||
bind_local_config:
|
bind_local_config:
|
||||||
file:
|
file:
|
||||||
- managed
|
- managed
|
||||||
|
@ -53,6 +55,8 @@ bind_local_config:
|
||||||
- mode: {{ salt['pillar.get']('bind:config:mode', '644') }}
|
- mode: {{ salt['pillar.get']('bind:config:mode', '644') }}
|
||||||
- require:
|
- require:
|
||||||
- pkg: bind
|
- pkg: bind
|
||||||
|
- watch_in:
|
||||||
|
- service: bind
|
||||||
|
|
||||||
bind_options_config:
|
bind_options_config:
|
||||||
file:
|
file:
|
||||||
|
@ -65,6 +69,8 @@ bind_options_config:
|
||||||
- mode: {{ salt['pillar.get']('bind:config:mode', '644') }}
|
- mode: {{ salt['pillar.get']('bind:config:mode', '644') }}
|
||||||
- require:
|
- require:
|
||||||
- pkg: bind
|
- pkg: bind
|
||||||
|
- watch_in:
|
||||||
|
- service: bind
|
||||||
|
|
||||||
bind_default_zones:
|
bind_default_zones:
|
||||||
file:
|
file:
|
||||||
|
@ -77,6 +83,8 @@ bind_default_zones:
|
||||||
- mode: {{ salt['pillar.get']('bind:config:mode', '644') }}
|
- mode: {{ salt['pillar.get']('bind:config:mode', '644') }}
|
||||||
- require:
|
- require:
|
||||||
- pkg: bind
|
- pkg: bind
|
||||||
|
- watch_in:
|
||||||
|
- service: bind
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% for key,args in salt['pillar.get']('bind:configured_zones', {}).iteritems() -%}
|
{% for key,args in salt['pillar.get']('bind:configured_zones', {}).iteritems() -%}
|
||||||
|
|
Loading…
Add table
Reference in a new issue