Future parser fix in params.pp
This commit is contained in:
parent
efeb01cee6
commit
b20f04330c
1 changed files with 3 additions and 3 deletions
|
@ -32,14 +32,14 @@ class mysql::params {
|
|||
'RedHat': {
|
||||
case $::operatingsystem {
|
||||
'Fedora': {
|
||||
if is_integer($::operatingsystemrelease) and $::operatingsystemrelease >= 19 or $::operatingsystemrelease == 'Rawhide' {
|
||||
if versioncmp($::operatingsystemrelease, '19') >= 0 or $::operatingsystemrelease == 'Rawhide' {
|
||||
$provider = 'mariadb'
|
||||
} else {
|
||||
$provider = 'mysql'
|
||||
}
|
||||
}
|
||||
/^(RedHat|CentOS|Scientific|OracleLinux)$/: {
|
||||
if $::operatingsystemmajrelease >= 7 {
|
||||
if versioncmp($::operatingsystemmajrelease, '7') >= 0 {
|
||||
$provider = 'mariadb'
|
||||
} else {
|
||||
$provider = 'mysql'
|
||||
|
@ -95,7 +95,7 @@ class mysql::params {
|
|||
$basedir = '/usr'
|
||||
}
|
||||
'SLES','SLED': {
|
||||
if $::operatingsystemrelease >= 12 {
|
||||
if versioncmp($::operatingsystemrelease, '12') >= 0 {
|
||||
$client_package_name = 'mariadb-client'
|
||||
$server_package_name = 'mariadb'
|
||||
$basedir = undef
|
||||
|
|
Loading…
Reference in a new issue