mariadb_server: configure cluster
This commit is contained in:
parent
e2a93b8580
commit
342928e401
|
@ -0,0 +1,30 @@
|
|||
---
|
||||
|
||||
mariadb_server__bind_address: '*'
|
||||
mariadb_server__allow: [ '10.13.12.0/24' ]
|
||||
mariadb_server__pki: true
|
||||
mariadb_server__pki_path: '/etc/pki/realms'
|
||||
|
||||
mariadb_server__packages: [ 'galera-4', 'mariadb-backup' ]
|
||||
|
||||
mariadb_server__mysqld_cluster_options:
|
||||
name: 'cluster-options'
|
||||
comment: 'Required for cluster operation'
|
||||
state: 'present'
|
||||
options:
|
||||
'wsrep_provider': '/usr/lib/galera/libgalera_smm.so'
|
||||
'wsrep_cluster_address': 'gcomm://db.internal.bij1.net,db2.internal.bij1.net'
|
||||
'binlog_format': 'ROW'
|
||||
'default_storage_engine': 'InnoDB'
|
||||
'innodb_autoinc_lock_mode': '2'
|
||||
'wsrep_on': 'ON'
|
||||
'wsrep_sst_method': 'mariabackup'
|
||||
'wsrep_sst_auth': 'mysql:'
|
||||
|
||||
mariadb_server__ferm__dependent_rules:
|
||||
- type: 'accept'
|
||||
dport: [ 'mysql', '4567', '4568', '4444' ]
|
||||
saddr: '{{ mariadb_server__allow }}'
|
||||
accept_any: False
|
||||
weight: '50'
|
||||
role: 'mariadb_server'
|
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
|
||||
python__v2: false
|
|
@ -1,4 +1,4 @@
|
|||
---
|
||||
|
||||
mariadb_server__bind_address: '0.0.0.0'
|
||||
mariadb_server__pki: true
|
||||
mariadb_server__options:
|
||||
'wsrep_node_address': 'db.internal.bij1.net'
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
|
||||
mariadb_server__options:
|
||||
'wsrep_node_address': 'db2.internal.bij1.net'
|
Loading…
Reference in New Issue