2014-05-12 21:04:35 +02:00
|
|
|
---
|
|
|
|
mysql_user_home: /root
|
2014-08-07 12:41:33 +02:00
|
|
|
mysql_root_username: root
|
2014-05-12 21:04:35 +02:00
|
|
|
mysql_root_password: root
|
|
|
|
|
2015-10-02 05:41:02 +02:00
|
|
|
# Set this to `yes` to forcibly update the root password.
|
|
|
|
mysql_root_password_update: no
|
2015-10-02 05:35:39 +02:00
|
|
|
|
2015-01-07 17:16:36 +01:00
|
|
|
mysql_enabled_on_startup: yes
|
|
|
|
|
2015-04-10 15:20:00 +02:00
|
|
|
# update my.cnf. each time role is run? yes | no
|
|
|
|
overwrite_global_mycnf: yes
|
|
|
|
|
2014-05-12 21:04:35 +02:00
|
|
|
# Pass in a comma-separated list of repos to use (e.g. "remi,epel"). Used only
|
|
|
|
# for RedHat systems (and derivatives).
|
|
|
|
mysql_enablerepo: ""
|
|
|
|
|
2015-01-13 16:23:33 +01:00
|
|
|
# Define a custom list of packages to install; if none provided, the default
|
|
|
|
# package list from vars/[OS-family].yml will be used.
|
|
|
|
# mysql_packages:
|
|
|
|
# - mysql
|
|
|
|
# - mysql-server
|
|
|
|
# - MySQL-python
|
|
|
|
|
2014-05-12 21:04:35 +02:00
|
|
|
# MySQL connection settings.
|
|
|
|
mysql_port: "3306"
|
2014-11-15 19:23:19 +01:00
|
|
|
mysql_bind_address: '0.0.0.0'
|
2014-05-12 21:04:35 +02:00
|
|
|
mysql_datadir: /var/lib/mysql
|
2015-06-02 15:53:37 +02:00
|
|
|
mysql_pid_file: /var/run/mysqld/mysqld.pid
|
2016-04-28 16:40:16 +02:00
|
|
|
mysql_skip_name_resolve: no
|
2014-05-12 21:04:35 +02:00
|
|
|
|
2015-04-24 19:20:27 +02:00
|
|
|
# Slow query log settings.
|
|
|
|
mysql_slow_query_log_enabled: no
|
|
|
|
mysql_slow_query_log_file: /var/log/mysql-slow.log
|
|
|
|
mysql_slow_query_time: 2
|
|
|
|
|
2014-05-12 21:04:35 +02:00
|
|
|
# Memory settings (default values optimized ~512MB RAM).
|
|
|
|
mysql_key_buffer_size: "256M"
|
2014-10-15 04:59:05 +02:00
|
|
|
mysql_max_allowed_packet: "64M"
|
2014-05-12 21:04:35 +02:00
|
|
|
mysql_table_open_cache: "256"
|
|
|
|
mysql_sort_buffer_size: "1M"
|
|
|
|
mysql_read_buffer_size: "1M"
|
|
|
|
mysql_read_rnd_buffer_size: "4M"
|
|
|
|
mysql_myisam_sort_buffer_size: "64M"
|
|
|
|
mysql_thread_cache_size: "8"
|
|
|
|
mysql_query_cache_size: "16M"
|
2015-11-12 21:23:44 +01:00
|
|
|
mysql_max_connections: 151
|
2014-05-12 21:04:35 +02:00
|
|
|
|
2014-07-03 15:25:12 +02:00
|
|
|
# Other settings.
|
|
|
|
mysql_wait_timeout: 28800
|
|
|
|
|
2014-05-12 21:04:35 +02:00
|
|
|
# InnoDB settings.
|
|
|
|
# Set .._buffer_pool_size up to 80% of RAM but beware of setting too high.
|
|
|
|
mysql_innodb_file_per_table: "1"
|
|
|
|
mysql_innodb_buffer_pool_size: "256M"
|
|
|
|
# Set .._log_file_size to 25% of buffer pool size.
|
|
|
|
mysql_innodb_log_file_size: "64M"
|
|
|
|
mysql_innodb_log_buffer_size: "8M"
|
|
|
|
mysql_innodb_flush_log_at_trx_commit: "1"
|
|
|
|
mysql_innodb_lock_wait_timeout: 50
|
|
|
|
|
2014-11-09 04:43:31 +01:00
|
|
|
# mysqldump settings.
|
2014-05-12 21:04:35 +02:00
|
|
|
mysql_mysqldump_max_allowed_packet: "64M"
|
2014-08-06 11:47:59 +02:00
|
|
|
|
2014-11-09 04:43:31 +01:00
|
|
|
# Logging settings.
|
2015-04-24 19:20:27 +02:00
|
|
|
mysql_log: ""
|
|
|
|
mysql_log_error: /var/log/mysql.err
|
|
|
|
mysql_syslog_tag: mysql
|
2014-08-07 12:50:14 +02:00
|
|
|
|
2015-12-16 19:50:16 +01:00
|
|
|
mysql_config_include_files: []
|
2015-12-16 22:12:02 +01:00
|
|
|
# - src: path/relative/to/playbook/file.cnf
|
|
|
|
# - { src: path/relative/to/playbook/anotherfile.cnf, force: yes }
|
2015-12-16 19:50:16 +01:00
|
|
|
|
2014-11-09 04:43:31 +01:00
|
|
|
# Databases.
|
2014-08-06 11:47:59 +02:00
|
|
|
mysql_databases: []
|
2015-12-16 23:04:55 +01:00
|
|
|
# - name: example
|
|
|
|
# collation: utf8_general_ci
|
|
|
|
# encoding: utf8
|
|
|
|
# replicate: 1
|
2014-11-09 04:43:31 +01:00
|
|
|
|
2015-12-16 23:04:55 +01:00
|
|
|
# Users.
|
2014-08-06 11:47:59 +02:00
|
|
|
mysql_users: []
|
2015-12-16 23:04:55 +01:00
|
|
|
# - name: example
|
|
|
|
# host: 127.0.0.1
|
|
|
|
# password: secret
|
|
|
|
# priv: *.*:USAGE
|
2014-11-09 04:43:31 +01:00
|
|
|
|
|
|
|
# Replication settings (replication is only enabled if master/user have values).
|
|
|
|
mysql_server_id: "1"
|
|
|
|
mysql_max_binlog_size: "100M"
|
2015-03-01 05:00:26 +01:00
|
|
|
mysql_expire_logs_days: "10"
|
2015-03-10 14:46:21 +01:00
|
|
|
mysql_replication_role: ''
|
2014-11-09 04:43:31 +01:00
|
|
|
mysql_replication_master: ''
|
|
|
|
# Same keys as `mysql_users` above.
|
|
|
|
mysql_replication_user: []
|