Skip to content
Snippets Groups Projects
Commit 2ca2e8b0 authored by Mikhail Lesyk's avatar Mikhail Lesyk
Browse files

add ability to specify repating keys

example:
binlog-ignore-db:
 - mysql
 - sys
 - information_schema
 - performance_schema
parent 88cbde3c
Branches
Tags
No related merge requests found
...@@ -31,8 +31,14 @@ ...@@ -31,8 +31,14 @@
{% if mvalue == "noarg_present" -%} {% if mvalue == "noarg_present" -%}
{{ mparam }} {{ mparam }}
{%- else -%} {%- else -%}
{%- if mvalue is iterable and mvalue is not string -%}
{%- for item in mvalue -%}
{{ mparam }}{{ '='|indent(indents, true) }} {{ item }}
{% endfor -%}
{%- else -%}
{{ mparam }}{{ '='|indent(indents, true) }} {{ mvalue }} {{ mparam }}{{ '='|indent(indents, true) }} {{ mvalue }}
{%- endif -%} {%- endif -%}
{%- endif -%}
{%- endfor -%} {%- endfor -%}
{%- endif -%} {%- endif -%}
{%- endfor %} {%- endfor %}
......
...@@ -31,6 +31,11 @@ mysql: ...@@ -31,6 +31,11 @@ mysql:
port: 3307 port: 3307
binlog_do_db: foo binlog_do_db: foo
auto_increment_increment: 5 auto_increment_increment: 5
binlog-ignore-db:
- mysql
- sys
- information_schema
- performance_schema
mysql: mysql:
# my.cnf param that not require value # my.cnf param that not require value
no-auto-rehash: noarg_present no-auto-rehash: noarg_present
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment