Skip to content

Commit

Permalink
Merge pull request #21 from inmotionhosting/NGX-810
Browse files Browse the repository at this point in the history
NGX-810: Add log_warning variable
  • Loading branch information
combssm authored Dec 1, 2023
2 parents b682928 + 36a3218 commit a02b730
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ Available variables are listed below with their default values (you can also see
| mysql_log_dir | Default: `/var/log/`
| mysql_log_error | Default: `"{{ mysql_log_dir }}/mariadb/mariadb.log"`
| mysql_log_file_group | Default: `mysql`
| mysql_log_warning | Default: `1`
| mysql_packages | Default: `The MySQL packages to install`
| mysql_query_alloc_block_size | Default: `16384`
| mysql_query_cache_limit | Default: `1M`
Expand Down
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ systemd_restart_setting: on-failure
mysql_log_dir: /var/lib/mysql
mysql_log_error: "{{ mysql_log_dir }}/{{ ansible_fqdn }}.err"
mysql_log_file_group: mysql
mysql_log_warning: 1
mysql_slow_query_log_enabled: true
mysql_slow_query_log_file: "{{ mysql_log_dir }}/mysql-slow.log"
mysql_syslog_tag: mariadb
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# requirements.txt

ansible-lint
ansible>=6,<7
ansible
molecule-plugins[docker]
molecule>=5,<6
molecule
pre-commit
1 change: 1 addition & 0 deletions templates/etc/my.cnf.d/logs.cnf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@

[mysqld]
log_error = {{ mysql_log_error }}
log_warning = {{ mysql_log_warning }}

0 comments on commit a02b730

Please sign in to comment.