mirror of
https://github.com/HanXHX/ansible-mysql.git
synced 2026-04-09 13:42:10 +07:00
first commit
This commit is contained in:
39
defaults/main.yml
Normal file
39
defaults/main.yml
Normal file
@@ -0,0 +1,39 @@
|
||||
---
|
||||
|
||||
# -------------------------------------
|
||||
# Setup
|
||||
# -------------------------------------
|
||||
mysql_origin: 'mariadb'
|
||||
mysql_vendor: "mariadb"
|
||||
mysql_root_password: 'change_me_NOW'
|
||||
|
||||
# -------------------------------------
|
||||
# Configuration
|
||||
# -------------------------------------
|
||||
mysql_cnf:
|
||||
- group_name: 'mysqld'
|
||||
conf:
|
||||
- key: 'innodb_file_per_table'
|
||||
value: 1
|
||||
- key: 'innodb_buffer_pool_size' # 60% available RAM :)
|
||||
value: '{{ (ansible_memtotal_mb * 0.6) | round | int }}M'
|
||||
|
||||
# -------------------------------------
|
||||
# Database / Users
|
||||
# -------------------------------------
|
||||
mysql_databases: []
|
||||
mysql_users: []
|
||||
|
||||
# -------------------------------------
|
||||
# MariaDB
|
||||
# -------------------------------------
|
||||
mariadb_version: '10.1' # (5.5, 10.0, 10.1)
|
||||
# See: http://mariadb.org/mariadb/repositories/
|
||||
mariadb_repository: "http://ftp.igh.cnrs.fr/pub/mariadb/repo/{{ mariadb_version }}/debian"
|
||||
|
||||
# -------------------------------------
|
||||
# Percona
|
||||
# -------------------------------------
|
||||
percona_version: '5.6'
|
||||
percona_repository: 'http://repo.percona.com/apt'
|
||||
|
||||
Reference in New Issue
Block a user