GithubHelp home page GithubHelp logo

ansible-role-mysql's Introduction

Ansible Role MySQL Build Status Ansible Role

MySQL is an open-source relational database management system (RDBMS). This role use MySQL Community Yum repository.

Inspired by https://github.com/mjanser/ansible-role-mysql

Requirements

None

Role Variables

The variables that can be passed to this role and a brief description about them are as follows. (For all variables, take a look at defaults/main.yml)

# Supported versions 5.5, 5.6, 5.7 and 8.0
mysql_version: '5.7'

# Required variable.
mysql_root_password: ''

mysql_import_timezones: true

mysql_bind_address: 127.0.0.1

# You can use https://tools.percona.com/wizard.
mysql_server_options:
  ## Memory usage
  'table_open_cache': '64'
  'key_buffer_size': '16M'
  'innodb_buffer_pool_size': '16M'
  'thread_cache_size': '8'
  'ft_min_word_len': '3'

  'innodb_log_file_size': '5M'
  'innodb_log_buffer_size': '8M'
  'innodb_flush_log_at_trx_commit': '1'
  'innodb_lock_wait_timeout': '50'

  ## Limitations
  'max_connections': '100'
  'max_connect_errors': '100'
  'long_query_time': '5'
  'max_tmp_tables': '40'
  'wait_timeout': '100'
  'interactive_timeout': '900'
  'connect_timeout': '4'
  'max_allowed_packet': '2MB'

  ## Query cache
  'query_cache_limit': '2M'
  'query_cache_size': '32M'
  'query_prealloc_size': '10M'

# Define additional mysql users.
mysql_users:
  - name: datadog
    password: "CorrectHorseBatteryStaple1$"
    privileges: "*.*:REPLICATION CLIENT,PROCESS/performance_schema.*:SELECT"

# Password for repl user with replication privileges
mysql_slave_password: ''

# List of hosts allowed to connect as repl user
mysql_slaves_hosts: 
  - 10.10.0.2
  - db2

Dependencies

None

Example Playbook

- hosts: servers
  roles:
     - { role: mkubenka.mysql, mysql_root_password: 'CorrectHorseBatteryStaple1$' }

License

BSD

Author Information

Michal Kubenka [email protected]

ansible-role-mysql's People

Contributors

gforis avatar mkubenka avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

ansible-role-mysql's Issues

Play breaking when installing PGP key

Hi,

Currently play breaks on below step.
Could you please advise on fix or release a fix for it?

Thanks

<10.x.x.x> (1, '\n{"msg": "gpg: no valid OpenPGP data found.\ngpg: processing message failed: Unknown system error\n", "failed": true, "invocation": {"module_args": {"state": "present", "validate_certs": true, "key": "http://dev.mysql.com/doc/refman/5.7/en/checking-gpg-signature.html"}}}\n', '')
fatal: [10.x.x.x]: FAILED! => {
"changed": false,
"failed": true,
"invocation": {
"module_args": {
"key": "http://dev.mysql.com/doc/refman/5.7/en/checking-gpg-signature.html",
"state": "present",
"validate_certs": true
}
},
"msg": "gpg: no valid OpenPGP data found.\ngpg: processing message failed: Unknown system error\n"
}
to retry, use: --limit @/etc/ansible/site.retry

PLAY RECAP **************************

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.