Add support for replicating from multinode dbs
This commit is contained in:
parent
e7ffd6fac3
commit
0f8f27773b
|
@ -4,7 +4,8 @@ class sunetdrive::mariadb (
|
|||
$location = undef,
|
||||
$tag_mariadb = undef,
|
||||
$override_config = undef,
|
||||
$override_compose = undef
|
||||
$override_compose = undef,
|
||||
$replicate_rewrite_db = undef,
|
||||
) {
|
||||
|
||||
$quorum_id = $::fqdn
|
||||
|
|
|
@ -19,6 +19,10 @@ gtid_strict_mode = ON
|
|||
log_bin = binlog
|
||||
log_slave_updates = ON
|
||||
server_id = <%= @server_id %>
|
||||
<% if not @replicate_rewrite_db.nil? -%>
|
||||
replicate-rewrite-db = "<%= @replicate_rewrite_db %>->nextcloud"
|
||||
replicate-wild-do-table = <%= @replicate_rewrite_db %>.%
|
||||
<% end -%>
|
||||
|
||||
# Innodb
|
||||
innodb_autoinc_lock_mode = 2
|
||||
|
|
Loading…
Reference in a new issue