GithubHelp home page GithubHelp logo

ansible-role-mariadb's Introduction

mariadb

.github/workflows/molecule.yml

For setting up MariaDB on Ubuntu.

Requirements

  • Ubuntu 20.04 or newer.

Role Variables

Performance tweaks

  • mysql_max_allowed_packet
  • mysql_max_connections
  • mysql_expire_logs_days
  • mysql_general_log_file
  • mysql_general_log
  • mysql_slow_query_log
  • mysql_slow_query_log_file
  • mysql_long_query_time

Drupal commerce performance

  • mysql_transaction_isolation
  • mysql_binlog_format

Server + Client or or Client Only

  • client_only (boolean): Only install the client, not the server.

Connectivity

  • mysql_bind_address: Defaults to 127.0.0.1

  • mysql_allow_from: What address(es) to accept connections by root to manage the system from.

    Can be a single string:

    mysql_allow_from: '10.5.0.6'

    Or a list:

    mysql_allow_from:
      - '10.5.0.11'
      - '10.5.0.12'

    Specify anything that mysql would normally support for the host field.

Non-Trivial, Potentially Destructive

WARNING: Don't use any of the following unless you absolutely know what you're doing. These are only exposed here so you can override defaults during a new installation. They shouldn't be changed in your ansible playbook once the server is running, except in cases where the playbook is being updated to match the changes that have already been affected on the server.

  • mysql_innodb_log_file_size - affects innodb_log_file_size if specified. Has no default value in the playbook.
  • mysql_datadir - has no default value in the playbook. Most systems default to /var/lib/mysql.
  • mariadb_version (string)
    • Defaults to auto which will let Ubuntu install whatever default version comes with Apt.
    • Can be auto, 10.1, 10.2 or any other supported version.
    • When not auto, the value for this is used to construct the repo URL
    • If sepecifying this, you may also need to specify mariadb_mirror, mariadb_mirror_proto, and mariadb_repo_deb_arch - See defaults/main.yml. Visit https://downloads.mariadb.org/mariadb/repositories to dermine the best value for these.

Dependencies

None

Example Playbook

- hosts: dbmaster
  become: true
  gather_facts: true
  roles:
    - role: acromedia.mariadb
      vars:
        mysql_bind_address: 0.0.0.0
        mysql_allow_from:
          - 10.8.8.5
          - 10.8.8.6

- hosts: app-nodes
  roles:
    - role: acromedia.mariadb
      vars:
        client_only: true

License

GPLv3

Author Information

Acro Media Inc. https://www.acromedia.com/

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.