Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion manifests/backup/xtrabackup.pp
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,17 @@
}
}
else {
# RENAME CLIENT Renamed to BINLOG MONITOR in MariaDB 10.5.2
if versioncmp($facts['mysql_version'], '10.5.2') >= 0 and (/(?i:mariadb)/ in $facts['mysqld_version']) {
$privs = ['BINLOG MONITOR', 'RELOAD', 'PROCESS', 'LOCK TABLES']
} else {
$privs = ['RELOAD', 'PROCESS', 'LOCK TABLES', 'REPLICATION CLIENT']
}
mysql_grant { "${backupuser}@localhost/*.*":
ensure => $ensure,
user => "${backupuser}@localhost",
table => '*.*',
privileges => ['RELOAD', 'PROCESS', 'LOCK TABLES', 'REPLICATION CLIENT'],
privileges => $privs,
require => Mysql_user["${backupuser}@localhost"],
}
}
Expand Down