Skip to content

Commit

Permalink
PR comments resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
praj1001 committed Sep 20, 2023
1 parent be96ee8 commit 00a227b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@
}

## Additional graceful failures
if $facts['os']['family'] == 'RedHat' and $facts['os']['release']['major'] == '4' and $facts['os']['name'] != 'Amazon' {
if $facts['os']['family'] == 'RedHat' and $facts['os']['release']['major'] < '7' and $facts['os']['name'] != 'Amazon' {
fail("Unsupported platform: puppetlabs-${module_name} only supports RedHat 7.0 and beyond.")
}
}
4 changes: 2 additions & 2 deletions spec/classes/mysql_backup_xtrabackup_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class { 'mysql::server': }
package = if facts[:os]['family'] == 'RedHat'
if Puppet::Util::Package.versioncmp(facts[:os]['release']['major'], '8') >= 0
'percona-xtrabackup-24'
elsif Puppet::Util::Package.versioncmp(facts[:os]['release']['major'], '7') >= 0
else
'percona-xtrabackup'
end
elsif facts[:os]['name'] == 'Debian'
Expand Down Expand Up @@ -193,7 +193,7 @@ class { 'mysql::server': }
package = if facts[:os]['family'] == 'RedHat'
if Puppet::Util::Package.versioncmp(facts[:os]['release']['major'], '8') >= 0
'percona-xtrabackup-24'
elsif Puppet::Util::Package.versioncmp(facts[:os]['release']['major'], '7') >= 0
else
'percona-xtrabackup'
end
elsif facts[:os]['name'] == 'Debian'
Expand Down

0 comments on commit 00a227b

Please sign in to comment.