Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make log_error configurable #229

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ mariadb_mysql_settings:
datadir: "/var/lib/mysql"
#Default is 16M
key_buffer_size: "{{ (ansible_memtotal_mb | int * mariadb_mysql_mem_multiplier) | round | int }}M"
log_error: /var/log/mysql/error.log
max_allowed_packet: "16M"
max_binlog_size: "100M"
query_cache_limit: "1M"
Expand Down
4 changes: 3 additions & 1 deletion templates/etc/mysql/my.cnf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ basedir = /usr
datadir = {{ mariadb_mysql_settings['datadir'] }}
key_buffer_size = {{ mariadb_mysql_settings['key_buffer_size'] }}
lc-messages-dir = /usr/share/mysql
log_error = /var/log/mysql/error.log
{% if mariadb_mysql_settings['log_error'] is defined -%}
log_error = {{ mariadb_mysql_settings['log_error'] }}
{%+ endif %}
max_allowed_packet = {{ mariadb_mysql_settings['max_allowed_packet'] }}
max_binlog_size = {{ mariadb_mysql_settings['max_binlog_size'] }}
myisam-recover = BACKUP
Expand Down
Loading