This commit is contained in:
Florian 2016-06-01 19:00:16 +02:00
parent 50b37ea28c
commit 8b52b73753
7 changed files with 11 additions and 11 deletions

View file

@ -130,7 +130,7 @@ bind_default_zones:
map: {{ map }}
{% endif %}
{% for zone, zone_data in salt['pillar.get']('bind:configured_zones', {}).iteritems() -%}
{% for zone, zone_data in salt['pillar.get']('bind:configured_zones', {}).items() -%}
{%- set file = salt['pillar.get']("bind:available_zones:" + zone + ":file") %}
{% if file and zone_data['type'] == "master" -%}
zones-{{ zone }}:
@ -157,8 +157,8 @@ signed-{{ zone }}:
{% endif %}
{% endfor %}
{%- for view, view_data in salt['pillar.get']('bind:configured_views', {}).iteritems() %}
{% for zone, zone_data in view_data.get('configured_zones', {}).iteritems() -%}
{%- 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") %}
{% if file and zone_data['type'] == "master" -%}
zones-{{ view }}-{{ zone }}:

View file

@ -11,7 +11,7 @@ options {
// listen-on { none; };
{#- Allow inclusion of arbitrary statements #}
{%- for statement, value in salt['pillar.get']('bind:config:options', {}).iteritems() -%}
{%- for statement, value in salt['pillar.get']('bind:config:options', {}).items() -%}
{%- if value is iterable and value is not string %}
{{ statement }} {
{%- for item in value %}

View file

@ -6,7 +6,7 @@
// organization
//include "/etc/bind/zones.rfc1918";
{% for key,args in salt['pillar.get']('bind:configured_zones', {}).iteritems() -%}
{% for key,args in salt['pillar.get']('bind:configured_zones', {}).items() -%}
{%- set file = salt['pillar.get']("bind:available_zones:" + key + ":file") %}
{%- set masters = salt['pillar.get']("bind:available_zones:" + key + ":masters") %}
zone "{{ key }}" {

View file

@ -3,7 +3,7 @@
// Do any local configuration here
//
{% for key,args in salt['pillar.get']('bind:keys', {}).iteritems() -%}
{% for key,args in salt['pillar.get']('bind:keys', {}).items() -%}
key "{{ key }}" {
algorithm {{ args['algorithm'] | default('HMAC-MD5.SIG-ALG.REG.INT') }};
secret "{{ args['secret'] }}";

View file

@ -60,13 +60,13 @@ zone "{{ key }}" {
include "{{ map.default_zones_config }}";
{%- endif %}
{% for key, args in salt['pillar.get']('bind:configured_zones', {}).iteritems() -%}
{% for key, args in salt['pillar.get']('bind:configured_zones', {}).items() -%}
{%- set file = salt['pillar.get']("bind:available_zones:" + key + ":file") %}
{%- set masters = salt['pillar.get']("bind:available_zones:" + key + ":masters") %}
{{ zone(key, args, file, masters) }}
{% endfor %}
{% for view, view_data in salt['pillar.get']('bind:configured_views', {}).iteritems() %}
{% for view, view_data in salt['pillar.get']('bind:configured_views', {}).items() %}
view {{ view }} {
{%- if view == 'default' %}
@ -79,7 +79,7 @@ match-clients {
{%- endfor %}
};
{% for key, args in view_data.get('configured_zones', {}).iteritems() -%}
{% for key, args in view_data.get('configured_zones', {}).items() -%}
{%- set file = salt['pillar.get']("bind:available_zones:" + key + ":file") %}
{%- set masters = salt['pillar.get']("bind:available_zones:" + key + ":masters") %}
{{ zone(key, args, file, masters) }}

View file

@ -21,7 +21,7 @@ options {
{%- endif -%}
{#- Allow inclusion of arbitrary statements #}
{%- for statement, value in salt['pillar.get']('bind:config:options', {}).iteritems() -%}
{%- for statement, value in salt['pillar.get']('bind:config:options', {}).items() -%}
{%- if value is iterable and value is not string %}
{{ statement }} {
{%- for item in value %}

View file

@ -6,7 +6,7 @@
// organization
//include "/etc/bind/zones.rfc1918";
{% for key,args in salt['pillar.get']('bind:configured_zones', {}).iteritems() -%}
{% for key,args in salt['pillar.get']('bind:configured_zones', {}).items() -%}
{%- set file = salt['pillar.get']("bind:available_zones:" + key + ":file") %}
{%- set masters = salt['pillar.get']("bind:available_zones:" + key + ":masters") %}
zone "{{ key }}" {