Skip to content

Commit

Permalink
make log_error configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
andanotheruser committed Nov 14, 2024
1 parent a83a130 commit c68dbc9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
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

0 comments on commit c68dbc9

Please sign in to comment.