Files
ansible-role-mysql/defaults/main.yml
Sebastian Schwarz 64e337194c Make MySQL root username configurable
While this doesn't seem to make sense on first glance it is useful for
systems which were screwed with Parallels Plesk, which renames the MySQL
root user to "admin".

This change allowes this role to be used while the server is
transitioning from Plesk to Ansible.
2014-08-07 14:26:05 +02:00

50 lines
1.3 KiB
YAML

---
mysql_user_home: /root
mysql_root_username: root
mysql_root_password: root
# Pass in a comma-separated list of repos to use (e.g. "remi,epel"). Used only
# for RedHat systems (and derivatives).
mysql_enablerepo: ""
# MySQL connection settings.
mysql_port: "3306"
mysql_datadir: /var/lib/mysql
mysql_socket: /var/lib/mysql/mysql.sock
# Memory settings (default values optimized ~512MB RAM).
mysql_key_buffer_size: "256M"
mysql_max_allowed_packet: "1M"
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"
# Other settings.
mysql_wait_timeout: 28800
mysql_max_allowed_packet: "64M"
# Try number of CPU's * 2 for thread_concurrency.
mysql_thread_concurrency: 2
# 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"
mysql_innodb_additional_mem_pool_size: "20M"
# 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
# mysqldump settings
mysql_mysqldump_max_allowed_packet: "64M"
# databases and users settings
mysql_databases: []
mysql_users: []