mkubenka.mysql

Ansible Role MySQL

MySQLはオープンソースのリレーショナルデータベース管理システム(RDBMS)です。このロールはMySQL Community Yum リポジトリを使用します。

インスパイア元: https://github.com/mjanser/ansible-role-mysql

必要条件

特になし

ロール変数

このロールに渡せる変数とその簡単な説明は以下の通りです。(すべての変数についてはdefaults/main.ymlを参照してください)


# サポートされているバージョン 5.5, 5.6, 5.7, および 8.0
mysql_version: '5.7'

# 必須変数
mysql_root_password: ''

mysql_import_timezones: true

mysql_bind_address: 127.0.0.1

# https://tools.percona.com/wizard を使用できます。
mysql_server_options:
  ## メモリ使用量
  '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'

  ## 制限
  '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_limit': '2M'
  'query_cache_size': '32M'
  'query_prealloc_size': '10M'

# 追加のMySQLユーザーを定義します。
mysql_users:
  - name: datadog
    password: "CorrectHorseBatteryStaple1$"
    privileges: "*.*:REPLICATION CLIENT,PROCESS/performance_schema.*:SELECT"

# レプリケーション権限を持つreplユーザーのパスワード
mysql_slave_password: ''

# replユーザーとして接続を許可されるホストのリスト
mysql_slaves_hosts: 
  - 10.10.0.2
  - db2

依存関係

特になし

サンプルプレイブック

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

ライセンス

BSD

著者情報

Michal Kubenka mkubenka@gmail.com

プロジェクトについて

MySQL Role.

インストール
ansible-galaxy install mkubenka.mysql
ライセンス
Unknown
ダウンロード
1.7k
所有者