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 @@
{% if mvalue == "noarg_present" -%}
{{ mparam }}
{%- 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 }}
{%- endif -%}
{%- endif -%}
{%- endfor -%}
{%- endif -%}
{%- endfor %}
......
......@@ -31,6 +31,11 @@ mysql:
port: 3307
binlog_do_db: foo
auto_increment_increment: 5
binlog-ignore-db:
- mysql
- sys
- information_schema
- performance_schema
mysql:
# my.cnf param that not require value
no-auto-rehash: noarg_present
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment