Skip to content

Commit bd9ada8

Browse files
(CAT-2100) Add Debian 12 support
- Update condition in xtrabackup.pp to include suitable privileges for Debian 12.
1 parent 6ffe520 commit bd9ada8

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.fixtures.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ fixtures:
66
"provision": "https://github.com/puppetlabs/provision.git"
77
puppet_agent:
88
repo: 'https://github.com/puppetlabs/puppetlabs-puppet_agent.git'
9-
ref: v4.13.0
9+
ref: v4.21.0

manifests/backup/xtrabackup.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
}
8787
}
8888
else {
89-
if $facts['os']['family'] == 'debian' and $facts['os']['release']['major'] == '11' or
89+
if ($facts['os']['name'] == 'debian' and versioncmp($facts['os']['release']['major'], '11') >= 0) or
9090
($facts['os']['name'] == 'Ubuntu' and versioncmp($facts['os']['release']['major'], '22.04') >= 0) {
9191
mysql_grant { "${backupuser}@localhost/*.*":
9292
ensure => $ensure,

metadata.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@
3939
"operatingsystem": "Debian",
4040
"operatingsystemrelease": [
4141
"10",
42-
"11"
42+
"11",
43+
"12"
4344
]
4445
},
4546
{

0 commit comments

Comments
 (0)