mirror of
https://github.com/saltstack-formulas/bind-formula.git
synced 2025-04-15 17:20:21 +00:00
Added configured_zones as file path source
This commit is contained in:
parent
cab5e24854
commit
2156b92221
1 changed files with 2 additions and 2 deletions
|
@ -132,7 +132,7 @@ bind_default_zones:
|
|||
{% endif %}
|
||||
|
||||
{% for zone, zone_data in salt['pillar.get']('bind:configured_zones', {}).items() -%}
|
||||
{%- set file = salt['pillar.get']("bind:available_zones:" + zone + ":file") %}
|
||||
{%- set file = salt['pillar.get']("bind:available_zones:" + zone + ":file", zone_data.get('file')) %}
|
||||
{% if file and zone_data['type'] == "master" -%}
|
||||
zones-{{ zone }}:
|
||||
file.managed:
|
||||
|
@ -161,7 +161,7 @@ signed-{{ zone }}:
|
|||
|
||||
{%- for view, view_data in salt['pillar.get']('bind:configured_views', {}).items() %}
|
||||
{% for zone, zone_data in view_data.get('configured_zones', {}).items() -%}
|
||||
{%- set file = salt['pillar.get']("bind:available_zones:" + zone + ":file") %}
|
||||
{%- set file = salt['pillar.get']("bind:available_zones:" + zone + ":file", zone_data.get('file')) %}
|
||||
{% if file and zone_data['type'] == "master" -%}
|
||||
zones-{{ view }}-{{ zone }}:
|
||||
file.managed:
|
||||
|
|
Loading…
Add table
Reference in a new issue