From b20f04330cebfb45b626f9d7ef7b6ad6280ea65a Mon Sep 17 00:00:00 2001 From: Morgan Haskel Date: Tue, 30 Dec 2014 09:45:54 -0800 Subject: [PATCH] Future parser fix in params.pp --- manifests/params.pp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/manifests/params.pp b/manifests/params.pp index 9a80af7..ccddf6c 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -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