File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 56
56
}
57
57
}
58
58
/^(RedHat|Rocky|CentOS|Scientific|OracleLinux|AlmaLinux)$/: {
59
- if versioncmp($::operatingsystemmajrelease , ' 7' ) >= 0 {
59
+ if versioncmp($facts [ ' os ' ][ ' release ' ][ ' major ' ] , ' 7' ) >= 0 {
60
60
$provider = ' mariadb'
61
- if versioncmp($::operatingsystemmajrelease , ' 8' ) >= 0 {
61
+ if versioncmp($facts [ ' os ' ][ ' release ' ][ ' major ' ] , ' 8' ) >= 0 {
62
62
$xtrabackup_package_name = ' percona-xtrabackup-24'
63
63
}
64
64
} else {
65
65
$provider = ' mysql'
66
66
$xtrabackup_package_name = ' percona-xtrabackup-20'
67
67
}
68
- if versioncmp($::operatingsystemmajrelease , ' 8' ) >= 0 {
68
+ if versioncmp($facts [ ' os ' ][ ' release ' ][ ' major ' ] , ' 8' ) >= 0 {
69
69
$java_package_name = ' mariadb-java-client'
70
70
$python_package_name = ' python3-PyMySQL'
71
71
} else {
516
516
}
517
517
518
518
# # Additional graceful failures
519
- if $facts [' os' ][' family' ] == ' RedHat' and $::operatingsystemmajrelease == ' 4' and $facts [' os' ][' name' ] != ' Amazon' {
519
+ if $facts [' os' ][' family' ] == ' RedHat' and $facts [ ' os ' ][ ' release ' ][ ' major ' ] == ' 4' and $facts [' os' ][' name' ] != ' Amazon' {
520
520
fail(" Unsupported platform: puppetlabs-${module_name} only supports RedHat 6.0 and beyond." )
521
521
}
522
522
}
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ class { 'mysql::server': root_password => 'password' }
40
40
/RedHat/: {
41
41
# RHEL/CentOS 5 is no longer supported by Percona, but older versions
42
42
# of the repository are still available.
43
- if versioncmp($::operatingsystemmajrelease , '6') >= 0 {
43
+ if versioncmp($facts['os']['release']['major'] , '6') >= 0 {
44
44
$percona_url = 'http://repo.percona.com/yum/percona-release-latest.noarch.rpm'
45
45
$epel_url = "https://download.fedoraproject.org/pub/epel/epel-release-latest-${facts['os']['release']['major']}.noarch.rpm"
46
46
} else {
You can’t perform that action at this time.
0 commit comments