mirror of
https://github.com/saltstack-formulas/mysql-formula.git
synced 2025-04-16 17:50:27 +00:00
Merge pull request #143 from lesykm/master
add ability to specify repeating keys
This commit is contained in:
commit
5c66c41673
2 changed files with 11 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue