CarlosLongarela.mariadb

Ansible Rolle: MariaDB

Build Status Anteil noch offener Probleme Durchschnittliche Zeit zur Lösung eines Problems

Installiere MariaDB, grundlegende Sicherheitsoptionen und Tools zur Datenbankoptimierung und Sicherungen mit Cron-Aufgaben.

Voraussetzungen

Keine.

Änderungen

Die Installation von PhpMyAdmin wurde entfernt, jetzt hat PhpMyAdmin seine eigene Rolle in Galaxy: CarlosLongarela.phpmyadmin

Rollenvariablen

mariadb_version: 10.1.22

mariadb_service_name: mysql
mariadb_secure_installation: True

mariadb_root_password: cambiame

mariadb_server_path_utiles: /root/utiles

mariadb_path_backups: /home/db_backups/

mariadb_databases: []
# [, liste die Datenbanken auf
# - datenbank1
# - datenbank2

mariadb_users: []
# [, liste die Benutzer auf
# benutzer1:
#    name: "usuario1"
#    password: "clave1"
#    priv: "*.*:ALL"
# benutzer2:
#    name: "usuario2"
#    password: "clave2"
#    priv: "db.tabelle:priv1,priv2"
# benutzer3:
#    name: "usuario3"
#    password: "clave3"
#    priv: "bdpruebas.*:ALL"

mariadb_options:
  bind_address: '127.0.0.1'
  performance_schema: on
  skip_name_resolve: 1
  max_connections: 100
  connect_timeout: 2
  max_allowed_packet: 10M
  innodb_buffer_pool_instances: 1
  innodb_buffer_pool_size: 100M
  innodb_log_file_size: 25M
  table_cache: 1000
  tmp_table_size: 50M
  max_heap_table_size: 50M
  query_cache_limit: 256K
  query_cache_type: 0
  query_cache_size: 0
  query_cache_min_res_unit: 2k
  join_buffer_size: 2M
  sort_buffer_size: 256K
  read_buffer_size: 128K
  read_rnd_buffer_size: 4M
  key_buffer: 500M
  slow_query_log: true
  long_query_time: 5
  log_slow_admin_statements: true
  log_queries_not_using_indexes: true

  mariadb_utiles_bd: false
  mariadb_cron_backup: false
  mariadb_cron_optimierung: false

mariadb_cron_backup_db:
  minute: "15"
  hour: "3"
  day: "*"
  weekday: "*"

mariadb_cron_optimiza_db:
  minute: "1"
  hour: "3"
  day: "*"
  weekday: "0"

aptget_update_cache_valid_time: 3600

Abhängigkeiten

Keine.

Beispiel Playbook

- hosts: server

  gather_facts: no
  become: true

  vars:
    mariadb_root_password: cambiame

    mariadb_databases:
      - meineDatenbank

    mariadb_users:
      benutzer1:
        name: "usuario1"
        password: "clave1"
        priv: "meineDatenbank.*:ALL"

    mariadb_utiles_bd: true
    mariadb_cron_backup: true
    mariadb_cron_optimierung: true

   rollen:
     - { rolle: CarlosLongarela.mariadb }

Lizenz

GPLv3

Autoreninformation

Diese Rolle wurde im Mai 2017 von Carlos Longarela von Taberna WordPress erstellt.

Über das Projekt

Installation, secure and configuration for MariaDB Server.

Installieren
ansible-galaxy install CarlosLongarela.mariadb
GitHub Repository
Lizenz
Unknown
Downloads
1.6k
Besitzer
Husband, father, geek... Photography magazine @fotodng creator. Freelance WordPress developer and consultant at @codeablehq and https://tabernawp.com