Add support for replicating from multinode dbs

This commit is contained in:
Micke Nordin 2023-06-12 09:31:41 +02:00
parent e7ffd6fac3
commit 0f8f27773b
Signed by untrusted user: Micke
GPG key ID: 0DA0A7A5708FE257
2 changed files with 6 additions and 1 deletions

View file

@ -4,7 +4,8 @@ class sunetdrive::mariadb (
$location = undef, $location = undef,
$tag_mariadb = undef, $tag_mariadb = undef,
$override_config = undef, $override_config = undef,
$override_compose = undef $override_compose = undef,
$replicate_rewrite_db = undef,
) { ) {
$quorum_id = $::fqdn $quorum_id = $::fqdn

View file

@ -19,6 +19,10 @@ gtid_strict_mode = ON
log_bin = binlog log_bin = binlog
log_slave_updates = ON log_slave_updates = ON
server_id = <%= @server_id %> 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
innodb_autoinc_lock_mode = 2 innodb_autoinc_lock_mode = 2