mirror of
https://github.com/saltstack-formulas/bind-formula.git
synced 2025-04-15 17:20:21 +00:00
Added logging configuration
This commit is contained in:
parent
698382cd9c
commit
c1312aa11b
1 changed files with 35 additions and 2 deletions
|
@ -14,11 +14,11 @@ options {
|
|||
memstatistics-file "/var/named/data/named_mem_stats.txt";
|
||||
|
||||
{#- Allow inclusion of arbitrary statements #}
|
||||
{%- for statement, value in salt['pillar.get']('bind:config:options', {}).items() -%}
|
||||
{%- for statement, value in salt['pillar.get']('bind:config:options', map.get('options', {})).items() -%}
|
||||
{%- if value is iterable and value is not string %}
|
||||
{{ statement }} {
|
||||
{%- for item in value %}
|
||||
{{ item }};
|
||||
{{ item }};
|
||||
{%- endfor %}
|
||||
};
|
||||
{%- else %}
|
||||
|
@ -37,6 +37,39 @@ logging {
|
|||
file "data/named.run";
|
||||
severity dynamic;
|
||||
};
|
||||
|
||||
{%- for channel, value in salt['pillar.get']('bind:config:logging:channels', {}).items() -%}
|
||||
{%- if value is iterable %}
|
||||
channel {{ channel }} {
|
||||
{%- for statement, item in value.items() %}
|
||||
{{ statement }} {{ item }};
|
||||
{%- endfor %}
|
||||
};
|
||||
{%- endif %}
|
||||
{%- endfor %}
|
||||
|
||||
{%- for statement, value in salt['pillar.get']('bind:config:logging:category', {}).items() -%}
|
||||
category {{ statement }} {
|
||||
{%- for item in value %}
|
||||
{{ item }};
|
||||
{%- endfor %}
|
||||
};
|
||||
{%- endfor %}
|
||||
|
||||
{%- for statement, value in salt['pillar.get']('bind:config:logging', {}).items() -%}
|
||||
{%- if statement not in ( 'channels', 'category' ) %}
|
||||
{%- if value is iterable and value is not string %}
|
||||
{{ statement }} {
|
||||
{%- for item in value %}
|
||||
{{ item }};
|
||||
{%- endfor %}
|
||||
};
|
||||
{%- else %}
|
||||
{{ statement }} {{ value }};
|
||||
{%- endif %}
|
||||
{%- endif %}
|
||||
{%- endfor %}
|
||||
|
||||
};
|
||||
|
||||
zone "." IN {
|
||||
|
|
Loading…
Add table
Reference in a new issue