mirror of
https://github.com/geerlingguy/ansible-role-apache
synced 2025-01-09 19:30:18 +01:00
Allow configuration of variables not currently supported
This commit is contained in:
parent
8991c7c8b9
commit
9de3121b26
3 changed files with 18 additions and 0 deletions
|
@ -75,6 +75,13 @@ Slow query log settings. Note that the log file will be created by this role, bu
|
|||
|
||||
The rest of the settings in `defaults/main.yml` control MySQL's memory usage. The default values are tuned for a server where MySQL can consume ~512 MB RAM, so you should consider adjusting them to suit your particular server better.
|
||||
|
||||
mysqld_performance_settings:
|
||||
- { name: key_buffer_size, value: "256M" }
|
||||
mysql_dump_settings: []
|
||||
- { name: mysqldump_max_allowed_packet, value: "64M" }
|
||||
|
||||
Any additional performance settings you would like to add beyond the defaults.
|
||||
|
||||
mysql_server_id: "1"
|
||||
mysql_max_binlog_size: "100M"
|
||||
mysql_expire_logs_days: "10"
|
||||
|
|
|
@ -28,6 +28,8 @@ mysql_bind_address: '0.0.0.0'
|
|||
mysql_datadir: /var/lib/mysql
|
||||
mysql_pid_file: /var/run/mysqld/mysqld.pid
|
||||
|
||||
mysqld_performance_settings: []
|
||||
|
||||
# Slow query log settings.
|
||||
mysql_slow_query_log_enabled: no
|
||||
mysql_slow_query_log_file: /var/log/mysql-slow.log
|
||||
|
@ -65,6 +67,8 @@ mysql_innodb_lock_wait_timeout: 50
|
|||
# mysqldump settings.
|
||||
mysql_mysqldump_max_allowed_packet: "64M"
|
||||
|
||||
mysql_dump_settings: []
|
||||
|
||||
# Logging settings.
|
||||
mysql_log: ""
|
||||
mysql_log_error: /var/log/mysql.err
|
||||
|
|
|
@ -90,9 +90,16 @@ innodb_log_buffer_size = {{ mysql_innodb_log_buffer_size }}
|
|||
innodb_flush_log_at_trx_commit = {{ mysql_innodb_flush_log_at_trx_commit }}
|
||||
innodb_lock_wait_timeout = {{ mysql_innodb_lock_wait_timeout }}
|
||||
|
||||
{% for setting in mysqld_performance_settings %}
|
||||
{{ setting.name }} = {{ setting.value }}
|
||||
{% endfor %}
|
||||
|
||||
[mysqldump]
|
||||
quick
|
||||
max_allowed_packet = {{ mysql_mysqldump_max_allowed_packet }}
|
||||
{% for setting in mysql_dump_settings %}
|
||||
{{ setting.name }} = {{ setting.value }}
|
||||
{% endfor %}
|
||||
|
||||
[mysqld_safe]
|
||||
pid-file = {{ mysql_pid_file }}
|
||||
|
|
Loading…
Reference in a new issue