mysql_extra_configuration rework

pull/14/head
Emilien Mantel 2016-09-25 11:23:38 +02:00
parent deb2e1b811
commit 17f3731450
3 changed files with 8 additions and 12 deletions

View File

@ -66,10 +66,7 @@ mysql_extra_configuration: []
# Example: # Example:
#mysql_extra_configuration: #mysql_extra_configuration:
# - group_name: 'mysqld' # 'innodb_awsome_feature': 1
# conf:
# - key: 'innodb_awsome_feature'
# value: 1
# ------------------------------------- # -------------------------------------

View File

@ -2,16 +2,13 @@
# {{ ansible_managed }} # {{ ansible_managed }}
# ------------------------------------------- # -------------------------------------------
{% for i in mysql_extra_configuration %} [mysqld]
[{{ i.group_name }}] {% for key, value in mysql_extra_configuration.iteritems() %}
{% for c in i.conf %} {% if value is defined or value is not none %}
{% if c.value is defined %} {{ key }} = {{ value }}
{{ c.key }} = {{ c.value }}
{% else %} {% else %}
{{ c.key }} {{ key }}
{% endif %} {% endif %}
{% endfor %} {% endfor %}
{% endfor %}
; vim: set ft=dosini : ; vim: set ft=dosini :

View File

@ -1,2 +1,4 @@
mysql_use_percona_repository: true mysql_use_percona_repository: true
mysql_bind_address: '{{ ansible_eth1.ipv4.address }}' mysql_bind_address: '{{ ansible_eth1.ipv4.address }}'
mysql_extra_configuration:
innodb_commit_concurrency: 0