bind-formula/bind/files/named.conf.logging.jinja

37 lines
1.8 KiB
Text
Raw Normal View History

2017-10-18 22:35:21 +02:00
2017-10-18 22:35:21 +02:00
logging {
{% for channel in salt['pillar.get']('bind:config:use_extensive_logging:channel') %}
fix(named.conf.logging.jinja): fix `salt-lint` errors ```bash Examining bind/files/named.conf.logging.jinja of type state [206] Jinja variables should have spaces before and after: {{ var_name }} bind/files/named.conf.logging.jinja:6 channel {{channel}} { [201] Trailing whitespace bind/files/named.conf.logging.jinja:8 file "{{ map.log_dir }}/{{salt['pillar.get']('bind:config:use_extensive_logging:channel:'+channel+':file')}}" versions {{salt['pillar.get']('bind:config:use_extensive_logging:channel:'+channel+':versions', '3')}} size {{salt['pillar.get']('bind:config:use_extensive_logging:channel:'+channel+':size', '20m')}}; [204] Lines should be no longer that 160 chars bind/files/named.conf.logging.jinja:8 file "{{ map.log_dir }}/{{salt['pillar.get']('bind:config:use_extensive_logging:channel:'+channel+':file')}}" versions {{salt['pillar.get']('bind:config:use_extensive_logging:channel:'+channel+':versions', '3')}} size {{salt['pillar.get']('bind:config:use_extensive_logging:channel:'+channel+':size', '20m')}}; [206] Jinja variables should have spaces before and after: {{ var_name }} bind/files/named.conf.logging.jinja:8 file "{{ map.log_dir }}/{{salt['pillar.get']('bind:config:use_extensive_logging:channel:'+channel+':file')}}" versions {{salt['pillar.get']('bind:config:use_extensive_logging:channel:'+channel+':versions', '3')}} size {{salt['pillar.get']('bind:config:use_extensive_logging:channel:'+channel+':size', '20m')}}; [206] Jinja variables should have spaces before and after: {{ var_name }} bind/files/named.conf.logging.jinja:20 severity {{salt['pillar.get']('bind:config:use_extensive_logging:channel:'+channel+':severity')}}; [206] Jinja variables should have spaces before and after: {{ var_name }} bind/files/named.conf.logging.jinja:23 syslog {{salt['pillar.get']('bind:config:use_extensive_logging:channel:'+channel+':syslog')}}; [206] Jinja variables should have spaces before and after: {{ var_name }} bind/files/named.conf.logging.jinja:29 category {{category}} { {{ salt['pillar.get']('bind:config:use_extensive_logging:category:'+category, []) | join('; ') }}; }; ```
2019-10-09 04:13:25 +01:00
channel {{ channel }} {
{%- if salt['pillar.get']('bind:config:use_extensive_logging:channel:'+channel+':file', False) %}
fix(named.conf.logging.jinja): fix `salt-lint` errors ```bash Examining bind/files/named.conf.logging.jinja of type state [206] Jinja variables should have spaces before and after: {{ var_name }} bind/files/named.conf.logging.jinja:6 channel {{channel}} { [201] Trailing whitespace bind/files/named.conf.logging.jinja:8 file "{{ map.log_dir }}/{{salt['pillar.get']('bind:config:use_extensive_logging:channel:'+channel+':file')}}" versions {{salt['pillar.get']('bind:config:use_extensive_logging:channel:'+channel+':versions', '3')}} size {{salt['pillar.get']('bind:config:use_extensive_logging:channel:'+channel+':size', '20m')}}; [204] Lines should be no longer that 160 chars bind/files/named.conf.logging.jinja:8 file "{{ map.log_dir }}/{{salt['pillar.get']('bind:config:use_extensive_logging:channel:'+channel+':file')}}" versions {{salt['pillar.get']('bind:config:use_extensive_logging:channel:'+channel+':versions', '3')}} size {{salt['pillar.get']('bind:config:use_extensive_logging:channel:'+channel+':size', '20m')}}; [206] Jinja variables should have spaces before and after: {{ var_name }} bind/files/named.conf.logging.jinja:8 file "{{ map.log_dir }}/{{salt['pillar.get']('bind:config:use_extensive_logging:channel:'+channel+':file')}}" versions {{salt['pillar.get']('bind:config:use_extensive_logging:channel:'+channel+':versions', '3')}} size {{salt['pillar.get']('bind:config:use_extensive_logging:channel:'+channel+':size', '20m')}}; [206] Jinja variables should have spaces before and after: {{ var_name }} bind/files/named.conf.logging.jinja:20 severity {{salt['pillar.get']('bind:config:use_extensive_logging:channel:'+channel+':severity')}}; [206] Jinja variables should have spaces before and after: {{ var_name }} bind/files/named.conf.logging.jinja:23 syslog {{salt['pillar.get']('bind:config:use_extensive_logging:channel:'+channel+':syslog')}}; [206] Jinja variables should have spaces before and after: {{ var_name }} bind/files/named.conf.logging.jinja:29 category {{category}} { {{ salt['pillar.get']('bind:config:use_extensive_logging:category:'+category, []) | join('; ') }}; }; ```
2019-10-09 04:13:25 +01:00
{%- set channel_file = salt['pillar.get']('bind:config:use_extensive_logging:channel:'+channel+':file') %}
{%- set channel_versions = salt['pillar.get']('bind:config:use_extensive_logging:channel:'+channel+':versions', '3') %}
{%- set channel_size = salt['pillar.get']('bind:config:use_extensive_logging:channel:'+channel+':size', '20m') %}
file "{{ map.log_dir }}/{{ channel_file }}" versions {{ channel_versions }} size {{ channel_size }};
{%- endif %}
{%- if salt['pillar.get']('bind:config:use_extensive_logging:channel:'+channel+':print-time') %}
print-time yes;
{%- endif %}
{%- if salt['pillar.get']('bind:config:use_extensive_logging:channel:'+channel+':print-category') %}
print-category yes;
{%- endif %}
{%- if salt['pillar.get']('bind:config:use_extensive_logging:channel:'+channel+':print-severity') %}
print-severity yes;
{%- endif %}
{%- if salt['pillar.get']('bind:config:use_extensive_logging:channel:'+channel+':severity') %}
fix(named.conf.logging.jinja): fix `salt-lint` errors ```bash Examining bind/files/named.conf.logging.jinja of type state [206] Jinja variables should have spaces before and after: {{ var_name }} bind/files/named.conf.logging.jinja:6 channel {{channel}} { [201] Trailing whitespace bind/files/named.conf.logging.jinja:8 file "{{ map.log_dir }}/{{salt['pillar.get']('bind:config:use_extensive_logging:channel:'+channel+':file')}}" versions {{salt['pillar.get']('bind:config:use_extensive_logging:channel:'+channel+':versions', '3')}} size {{salt['pillar.get']('bind:config:use_extensive_logging:channel:'+channel+':size', '20m')}}; [204] Lines should be no longer that 160 chars bind/files/named.conf.logging.jinja:8 file "{{ map.log_dir }}/{{salt['pillar.get']('bind:config:use_extensive_logging:channel:'+channel+':file')}}" versions {{salt['pillar.get']('bind:config:use_extensive_logging:channel:'+channel+':versions', '3')}} size {{salt['pillar.get']('bind:config:use_extensive_logging:channel:'+channel+':size', '20m')}}; [206] Jinja variables should have spaces before and after: {{ var_name }} bind/files/named.conf.logging.jinja:8 file "{{ map.log_dir }}/{{salt['pillar.get']('bind:config:use_extensive_logging:channel:'+channel+':file')}}" versions {{salt['pillar.get']('bind:config:use_extensive_logging:channel:'+channel+':versions', '3')}} size {{salt['pillar.get']('bind:config:use_extensive_logging:channel:'+channel+':size', '20m')}}; [206] Jinja variables should have spaces before and after: {{ var_name }} bind/files/named.conf.logging.jinja:20 severity {{salt['pillar.get']('bind:config:use_extensive_logging:channel:'+channel+':severity')}}; [206] Jinja variables should have spaces before and after: {{ var_name }} bind/files/named.conf.logging.jinja:23 syslog {{salt['pillar.get']('bind:config:use_extensive_logging:channel:'+channel+':syslog')}}; [206] Jinja variables should have spaces before and after: {{ var_name }} bind/files/named.conf.logging.jinja:29 category {{category}} { {{ salt['pillar.get']('bind:config:use_extensive_logging:category:'+category, []) | join('; ') }}; }; ```
2019-10-09 04:13:25 +01:00
severity {{ salt['pillar.get']('bind:config:use_extensive_logging:channel:'+channel+':severity') }};
{%- endif %}
{%- if salt['pillar.get']('bind:config:use_extensive_logging:channel:'+channel+':syslog') %}
fix(named.conf.logging.jinja): fix `salt-lint` errors ```bash Examining bind/files/named.conf.logging.jinja of type state [206] Jinja variables should have spaces before and after: {{ var_name }} bind/files/named.conf.logging.jinja:6 channel {{channel}} { [201] Trailing whitespace bind/files/named.conf.logging.jinja:8 file "{{ map.log_dir }}/{{salt['pillar.get']('bind:config:use_extensive_logging:channel:'+channel+':file')}}" versions {{salt['pillar.get']('bind:config:use_extensive_logging:channel:'+channel+':versions', '3')}} size {{salt['pillar.get']('bind:config:use_extensive_logging:channel:'+channel+':size', '20m')}}; [204] Lines should be no longer that 160 chars bind/files/named.conf.logging.jinja:8 file "{{ map.log_dir }}/{{salt['pillar.get']('bind:config:use_extensive_logging:channel:'+channel+':file')}}" versions {{salt['pillar.get']('bind:config:use_extensive_logging:channel:'+channel+':versions', '3')}} size {{salt['pillar.get']('bind:config:use_extensive_logging:channel:'+channel+':size', '20m')}}; [206] Jinja variables should have spaces before and after: {{ var_name }} bind/files/named.conf.logging.jinja:8 file "{{ map.log_dir }}/{{salt['pillar.get']('bind:config:use_extensive_logging:channel:'+channel+':file')}}" versions {{salt['pillar.get']('bind:config:use_extensive_logging:channel:'+channel+':versions', '3')}} size {{salt['pillar.get']('bind:config:use_extensive_logging:channel:'+channel+':size', '20m')}}; [206] Jinja variables should have spaces before and after: {{ var_name }} bind/files/named.conf.logging.jinja:20 severity {{salt['pillar.get']('bind:config:use_extensive_logging:channel:'+channel+':severity')}}; [206] Jinja variables should have spaces before and after: {{ var_name }} bind/files/named.conf.logging.jinja:23 syslog {{salt['pillar.get']('bind:config:use_extensive_logging:channel:'+channel+':syslog')}}; [206] Jinja variables should have spaces before and after: {{ var_name }} bind/files/named.conf.logging.jinja:29 category {{category}} { {{ salt['pillar.get']('bind:config:use_extensive_logging:category:'+category, []) | join('; ') }}; }; ```
2019-10-09 04:13:25 +01:00
syslog {{ salt['pillar.get']('bind:config:use_extensive_logging:channel:'+channel+':syslog') }};
{%- endif %}
};
{% endfor %}
{%- for category in salt['pillar.get']('bind:config:use_extensive_logging:category') %}
fix(named.conf.logging.jinja): fix `salt-lint` errors ```bash Examining bind/files/named.conf.logging.jinja of type state [206] Jinja variables should have spaces before and after: {{ var_name }} bind/files/named.conf.logging.jinja:6 channel {{channel}} { [201] Trailing whitespace bind/files/named.conf.logging.jinja:8 file "{{ map.log_dir }}/{{salt['pillar.get']('bind:config:use_extensive_logging:channel:'+channel+':file')}}" versions {{salt['pillar.get']('bind:config:use_extensive_logging:channel:'+channel+':versions', '3')}} size {{salt['pillar.get']('bind:config:use_extensive_logging:channel:'+channel+':size', '20m')}}; [204] Lines should be no longer that 160 chars bind/files/named.conf.logging.jinja:8 file "{{ map.log_dir }}/{{salt['pillar.get']('bind:config:use_extensive_logging:channel:'+channel+':file')}}" versions {{salt['pillar.get']('bind:config:use_extensive_logging:channel:'+channel+':versions', '3')}} size {{salt['pillar.get']('bind:config:use_extensive_logging:channel:'+channel+':size', '20m')}}; [206] Jinja variables should have spaces before and after: {{ var_name }} bind/files/named.conf.logging.jinja:8 file "{{ map.log_dir }}/{{salt['pillar.get']('bind:config:use_extensive_logging:channel:'+channel+':file')}}" versions {{salt['pillar.get']('bind:config:use_extensive_logging:channel:'+channel+':versions', '3')}} size {{salt['pillar.get']('bind:config:use_extensive_logging:channel:'+channel+':size', '20m')}}; [206] Jinja variables should have spaces before and after: {{ var_name }} bind/files/named.conf.logging.jinja:20 severity {{salt['pillar.get']('bind:config:use_extensive_logging:channel:'+channel+':severity')}}; [206] Jinja variables should have spaces before and after: {{ var_name }} bind/files/named.conf.logging.jinja:23 syslog {{salt['pillar.get']('bind:config:use_extensive_logging:channel:'+channel+':syslog')}}; [206] Jinja variables should have spaces before and after: {{ var_name }} bind/files/named.conf.logging.jinja:29 category {{category}} { {{ salt['pillar.get']('bind:config:use_extensive_logging:category:'+category, []) | join('; ') }}; }; ```
2019-10-09 04:13:25 +01:00
category {{ category }} { {{ salt['pillar.get']('bind:config:use_extensive_logging:category:'+category, []) | join('; ') }}; };
2017-10-18 22:35:21 +02:00
{%- endfor %}
2017-10-18 22:35:21 +02:00
};