This repository has been archived by the owner on Nov 16, 2019. It is now read-only.
forked from overdrive3000/ansible-percona
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
143 additions
and
279 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,65 +1 @@ | ||
# Test files | ||
dump.sql.bz2 | ||
|
||
# VIM specific files | ||
[._]*.s[a-w][a-z] | ||
[._]s[a-w][a-z] | ||
*.un~ | ||
Session.vim | ||
.netrwhist | ||
*~ | ||
|
||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
|
||
# C extensions | ||
*.so | ||
|
||
# Distribution / packaging | ||
.Python | ||
env/ | ||
bin/ | ||
build/ | ||
develop-eggs/ | ||
dist/ | ||
eggs/ | ||
lib/ | ||
lib64/ | ||
parts/ | ||
sdist/ | ||
var/ | ||
*.egg-info/ | ||
.installed.cfg | ||
*.egg | ||
|
||
# Installer logs | ||
pip-log.txt | ||
pip-delete-this-directory.txt | ||
|
||
# Unit test / coverage reports | ||
htmlcov/ | ||
.tox/ | ||
.coverage | ||
.cache | ||
nosetests.xml | ||
coverage.xml | ||
|
||
# Translations | ||
*.mo | ||
|
||
# Mr Developer | ||
.mr.developer.cfg | ||
.project | ||
.pydevproject | ||
|
||
# Rope | ||
.ropeproject | ||
|
||
# Django stuff: | ||
*.log | ||
*.pot | ||
|
||
# Sphinx documentation | ||
docs/_build/ | ||
|
||
.idea |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,42 @@ | ||
--- | ||
# Define root password for percona server | ||
root_password: reallylongpassword | ||
# file: mysql/defaults/main.yml | ||
|
||
# Some defaults variables for percona server config file | ||
port: 3306 | ||
bind_address: 0.0.0.0 | ||
max_allowed_packet: 16M | ||
key_buffer: 16M | ||
thread_stack: 192K | ||
thread_cache_size: 8 | ||
# Uncomment following vars if you want to log queries | ||
sqldebug: true | ||
log_slow_queries: log_slow_queries = /var/log/mysql/mysql-slow.log | ||
long_query_time: long_query_time = 2 | ||
log_queries_not_using_indexes: log-queries-not-using-indexes | ||
# Basic settings | ||
mysql_port: 3306 | ||
mysql_bind_address: "0.0.0.0" | ||
mysql_root_password: 'pass' | ||
mysql_language: '/usr/share/mysql/' | ||
|
||
# Define is a database must be created | ||
create_app_db: true | ||
# Fine Tuning | ||
mysql_key_buffer: '16M' | ||
mysql_max_allowed_packet: '128M' | ||
mysql_thread_stack: '192K' | ||
mysql_cache_size: 8 | ||
mysql_myisam_recover: 'BACKUP' | ||
mysql_max_connections: 100 | ||
mysql_table_cache: 64 | ||
mysql_thread_concurrency: 10 | ||
mysql_query_cache_limit: '1M' | ||
mysql_query_cache_size: '16M' | ||
mysql_innodb_file_per_table: 'innodb_file_per_table' | ||
mysql_character_set_server: 'utf8' | ||
mysql_collation_server: 'utf8_general_ci' | ||
mysql_mysqldump_max_allowed_packet: '128M' | ||
mysql_isamchk_key_buffer: '16M' | ||
|
||
# InnoDB tuning | ||
mysql_innodb_file_per_table: 'innodb_file_per_table' | ||
mysql_innodb_flush_method: 'fdatasync' | ||
mysql_innodb_buffer_pool_size: '128M' | ||
mysql_innodb_flush_log_at_trx_commit: 1 | ||
mysql_innodb_lock_wait_timeout: 50 | ||
mysql_innodb_log_buffer_size: '1M' | ||
mysql_innodb_log_file_size: '5M' | ||
|
||
# Create from a DB dump? | ||
create_app_db: false | ||
db_name: mydatabase | ||
db_collation: utf8_general_ci | ||
db_user: myuser | ||
db_user_password: anotherreallylongpassword | ||
db_host: "%" | ||
db_dump_file: "" | ||
db_dump_file: "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
# | ||
# The MySQL database server configuration file. | ||
# | ||
# For explanations see | ||
# http://dev.mysql.com/doc/mysql/en/server-system-variables.html | ||
|
||
[client] | ||
port = {{ mysql_port }} | ||
socket = /var/run/mysqld/mysqld.sock | ||
|
||
[mysqld_safe] | ||
socket = /var/run/mysqld/mysqld.sock | ||
nice = 0 | ||
|
||
[mysqld] | ||
# * Basic Settings | ||
user = mysql | ||
pid-file = /var/run/mysqld/mysqld.pid | ||
socket = /var/run/mysqld/mysqld.sock | ||
port = {{ mysql_port }} | ||
basedir = /usr | ||
datadir = /var/lib/mysql | ||
tmpdir = /tmp | ||
# language is for pre-5.5. In 5.5 it is an alias for lc_messages_dir. | ||
language = {{ mysql_language }} | ||
bind-address = {{ mysql_bind_address }} | ||
skip-external-locking | ||
|
||
|
||
# * Fine Tuning | ||
key_buffer = {{ mysql_key_buffer }} | ||
max_allowed_packet = {{ mysql_max_allowed_packet }} | ||
thread_stack = {{ mysql_thread_stack }} | ||
thread_cache_size = {{ mysql_cache_size }} | ||
myisam-recover = {{ mysql_myisam_recover }} | ||
max_connections = {{ mysql_max_connections }} | ||
table_open_cache = {{ mysql_table_cache }} | ||
thread_concurrency = {{ mysql_thread_concurrency }} | ||
|
||
# ** Query Cache Configuration | ||
query_cache_limit = {{ mysql_query_cache_limit }} | ||
query_cache_size = {{ mysql_query_cache_size }} | ||
|
||
# ** Logging and Replication | ||
#general_log_file = /var/log/mysql/mysql.log | ||
#general_log = 1 | ||
# | ||
#log_slow_queries = /var/log/mysql/mysql-slow.log | ||
#long_query_time = 2 | ||
#log-queries-not-using-indexes | ||
# | ||
# The following can be used as easy to replay backup logs or for replication. | ||
#server-id = 1 | ||
#log_bin = /var/log/mysql/mysql-bin.log | ||
expire_logs_days = 10 | ||
max_binlog_size = 100M | ||
#binlog_do_db = include_database_name | ||
#binlog_ignore_db = include_database_name | ||
|
||
# ** InnoDB | ||
# InnoDB is enabled by default with a 10MB datafile in /var/lib/mysql/. | ||
# Read the manual for more InnoDB related options. There are many! | ||
innodb_flush_log_at_trx_commit = {{ mysql_innodb_flush_log_at_trx_commit }} | ||
innodb_buffer_pool_size = {{ mysql_innodb_buffer_pool_size }} | ||
{% if mysql_innodb_flush_method != 'fdatasync': %} | ||
innodb_flush_method = {{ mysql_innodb_flush_method }} | ||
{% endif %} | ||
innodb_lock_wait_timeout = {{ mysql_innodb_lock_wait_timeout }} | ||
innodb_log_buffer_size = {{ mysql_innodb_log_buffer_size }} | ||
innodb_log_file_size = {{ mysql_innodb_log_file_size }} | ||
{{ mysql_innodb_file_per_table }} | ||
|
||
# ** Security Features | ||
# Read the manual, too, if you want chroot! | ||
# chroot = /var/lib/mysql/ | ||
# | ||
# For generating SSL certificates I recommend the OpenSSL GUI "tinyca". | ||
# ssl-ca=/etc/mysql/cacert.pem | ||
# ssl-cert=/etc/mysql/server-cert.pem | ||
# ssl-key=/etc/mysql/server-key.pem | ||
|
||
character_set_server = {{ mysql_character_set_server }} | ||
collation_server = {{ mysql_collation_server }} | ||
|
||
[mysqldump] | ||
quick | ||
quote-names | ||
max_allowed_packet = {{ mysql_mysqldump_max_allowed_packet }} | ||
|
||
[mysql] | ||
#no-auto-rehash # faster start of mysql but no tab completition | ||
|
||
[isamchk] | ||
key_buffer = {{ mysql_isamchk_key_buffer }} | ||
|
||
# | ||
# * IMPORTANT: Additional settings that can override those from this file! | ||
# The files must end with '.cnf', otherwise they'll be ignored. | ||
# | ||
!includedir /etc/mysql/conf.d/ |
Oops, something went wrong.