Skip to content
Snippets Groups Projects
Select Git revision
  • c451a25c9a4dd689c012e63e4e7cc1ba32c3f610
  • master default protected
  • version2
  • update_bulma_fontawesome
  • privacy_notification
  • specify_target_asset_app
  • v2.2.24
  • v2.3.0
  • v2.2.23
  • v2.2.22
  • v2.2.21
  • v2.2.20
  • v2.2.19
  • v2.2.18
  • v2.2.17
  • v2.2.16
  • v2.2.15
  • v2.2.14
  • v2.2.13
  • v2.2.12
  • v2.2.11
  • v2.2.10
  • v2.2.9
  • v2.2.8
  • v2.2.7
  • v2.2.6
26 results

setup.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 }}