inmotionhosting.mysql

Ansible Molecule Pipeline GPL-3.0 Lizenz GitHub Sterne

InMotion Hosting Ultrastack

Ansible Rolle: MySQL

Modulare Ansible Rolle zur Bereitstellung und Konfiguration von MySQL/MariaDB

Anforderungen

Diese Ansible Rolle unterstützt die zwei neuesten stabilen Versionen spezifischer serverorientierter Linux-Distributionen und zielt darauf ab, deren Abkündigungsrichtlinien zu folgen. Außerdem konzentrieren wir uns darauf, die letzten beiden stabilen Versionen jeder Verteilung zu unterstützen, die zum Zeitpunkt des Schreibens wie folgt sind:

  • CentOS 7.x
  • Debian 10 oder höher
  • Ubuntu 20.04 LTS oder höher
  • AlmaLinux 8.x oder höher
  • RockyLinux 8.x oder höher

Abhängigkeiten

  • community.mysql

Rollenvariablen

Verfügbare Variablen sind unten mit ihren Standardwerten aufgeführt (Siehe auch defaults/main.yml)

Variable Beschreibung
mysql_config_file Standard: /etc/my.cnf
mysql_config_include_dir Standard: /etc/my.cnf.d
mysql_daemon Standard: mariadb
mysql_innodb_buffer_pool_size Standard: 128M
mysql_innodb_file_per_table Standard: 1
mysql_innodb_log_buffer_size Standard: 16M
mysql_innodb_log_file_size Standard: 96M
mysql_log_dir Standard: /var/log/
mysql_log_error Standard: "{{ mysql_log_dir }}/mariadb/mariadb.log"
mysql_log_file_group Standard: mysql
mysql_log_warning Standard: 1
mysql_packages Standard: Die MySQL-Pakete, die installiert werden sollen
mysql_query_alloc_block_size Standard: 16384
mysql_query_cache_limit Standard: 1M
mysql_query_cache_min_res_unit Standard: 4096
mysql_query_cache_size Standard: 16M
mysql_query_cache_strip_comments Standard: 0
mysql_query_cache_type Standard: 1
mysql_query_cache_wlock_invalidate Standard: 0
mysql_query_prealloc_size Standard: 24576
mysql_root_home Standard: /root
mysql_root_password_update Standard: false
mysql_root_username Standard: root
mysql_slow_query_log_enabled Standard: true
mysql_slow_query_log_file Standard: "{{ mysql_log_dir }}/mysql-slow.log"
mysql_socket Standard: true
mysql_socket_path Standard: /var/lib/mysql/mysql.sock
mysql_supports_innodb_large_prefix Standard: true
mysql_syslog_tag Standard: mariadb
password_generate Standard: "{{ lookup('password', '/dev/null length=15 chars=ascii_letters') }}"

Beispiel-Playbook

- hosts: www
  roles:
     - role: inmotionhosting.mysql

Lizenz

GPLv3

Autoreninformationen

InMotion Hosting

Über das Projekt

Modular Ansible Role for deploying and configuring MySQL/MariaDB

Installieren
ansible-galaxy install inmotionhosting.mysql
GitHub Repository
Lizenz
gpl-3.0
Downloads
54.1k
Besitzer
Offering Private and Public Cloud, Software as a Service, and Web Hosting