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': {
|
'RedHat': {
|
||||||
case $::operatingsystem {
|
case $::operatingsystem {
|
||||||
'Fedora': {
|
'Fedora': {
|
||||||
if is_integer($::operatingsystemrelease) and $::operatingsystemrelease >= 19 or $::operatingsystemrelease == 'Rawhide' {
|
if versioncmp($::operatingsystemrelease, '19') >= 0 or $::operatingsystemrelease == 'Rawhide' {
|
||||||
$provider = 'mariadb'
|
$provider = 'mariadb'
|
||||||
} else {
|
} else {
|
||||||
$provider = 'mysql'
|
$provider = 'mysql'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/^(RedHat|CentOS|Scientific|OracleLinux)$/: {
|
/^(RedHat|CentOS|Scientific|OracleLinux)$/: {
|
||||||
if $::operatingsystemmajrelease >= 7 {
|
if versioncmp($::operatingsystemmajrelease, '7') >= 0 {
|
||||||
$provider = 'mariadb'
|
$provider = 'mariadb'
|
||||||
} else {
|
} else {
|
||||||
$provider = 'mysql'
|
$provider = 'mysql'
|
||||||
|
@ -95,7 +95,7 @@ class mysql::params {
|
||||||
$basedir = '/usr'
|
$basedir = '/usr'
|
||||||
}
|
}
|
||||||
'SLES','SLED': {
|
'SLES','SLED': {
|
||||||
if $::operatingsystemrelease >= 12 {
|
if versioncmp($::operatingsystemrelease, '12') >= 0 {
|
||||||
$client_package_name = 'mariadb-client'
|
$client_package_name = 'mariadb-client'
|
||||||
$server_package_name = 'mariadb'
|
$server_package_name = 'mariadb'
|
||||||
$basedir = undef
|
$basedir = undef
|
||||||
|
|
Loading…
Reference in a new issue