Skip to content
Snippets Groups Projects
Select Git revision
  • 3428477ecac41ce650f9c97e664a5290c5325ceb
  • master default protected
  • pymilter-1.0.4
  • pymilter-1.0.3
  • pymilter-1.0.2
  • pymilter-1.0.1
  • pymilter-1_0
  • milter-0_8_18
  • pymilter-0_9_8
  • pymilter-0_9_7
  • pymilter-0_9_6
  • pymilter-0_9_5
  • pymilter-0_9_4
  • pymilter-0_9_2
  • pymilter-0_9_1
  • pymilter-0_9_0
  • pymilter-0_8_12
  • pymilter-0_8_11
  • pymilter-0_8_10
  • pymilter-0_8_9
  • milter-0_8_8
  • milter-0_8_7
22 results

mime.py

Blame
  • my-include.cnf 1.46 KiB
    # DO NOT CHANGE THIS FILE!
    # This config is generated by SALTSTACK
    # and all change will be overrided on next salt call
    {#-
    ===== FETCH DATA =====
    -#}
    {% from tpldir ~ "/map.jinja" import mysql with context %}
    {%- from tpldir ~ "/supported_sections.yaml" import supported_sections with context -%}
    {#-
    ===== COMBINE DATA =====
    -#}
    {%- if "global_config" in mysql and "sections" in mysql.global_config -%}
    {%- set goodParamList = mysql.global_config.sections -%}
    {%- for section_name in supported_sections -%}
        {%- set sectdict = mysql.global_config.sections[section_name] | default({}) -%}
        {%- for mparam, mvalue in salt['pillar.get']('mysql:global:'+section_name, {}).items() -%}
            {%- set mparamUnderscore = mparam | replace('-','_') -%}
            {%- do sectdict.update({mparamUnderscore:mvalue}) -%}
        {%- endfor -%}
        {%- do goodParamList.update({section_name:sectdict}) -%}
    {%- endfor -%}
    {%- else -%}
    {%- set goodParamList = {} -%}
    {%- endif -%}
    {#-
    ===== PRINT DATA =====
    -#}
    {%- for sname,sdata in goodParamList.items() -%}
    {%- if sdata %}
    
    [{{ sname }}]
    {%- for mparam, mvalue in sdata.items()|default([])|sort -%}
    {%- if mvalue is none %}{% continue %}{% endif -%}
    {%- set indents = 40 - mparam|count %}
    {% if mvalue == "noarg_present" -%}
    {{ mparam }}
    {%- else -%}
    {{ mparam }}{{ '='|indent(indents, true) }} {{ mvalue }}
    {%- endif -%}
    {%- endfor -%}
    {%- endif -%}
    {%- endfor %}
    
    #
    # include all files from the config directory
    #
    !includedir {{ mysql.config_directory }}