Skip to content

Commit

Permalink
Update conditional logic xtrabackup.pp to properly
Browse files Browse the repository at this point in the history
  • Loading branch information
ndelic0 committed Dec 8, 2023
1 parent e69e11a commit 3c258bc
Showing 1 changed file with 7 additions and 1 deletion.
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

0 comments on commit 3c258bc

Please sign in to comment.