Skip to content

Commit

Permalink
Merge pull request #610 from cmurphy/sles12
Browse files Browse the repository at this point in the history
Fix support for SLES 12
  • Loading branch information
cyberious committed Nov 26, 2014
2 parents 510dfda + 25b6534 commit 137d0db
Showing 1 changed file with 20 additions and 15 deletions.
35 changes: 20 additions & 15 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,6 @@
$provider = 'mysql'
}
}
'SLES': {
if $::operatingsystemmajrelease >= 12 {
$provider = 'mariadb'
} else {
$provider = 'mysql'
}
}
default: {
$provider = 'mysql'
}
Expand Down Expand Up @@ -95,15 +88,27 @@
}

'Suse': {
$client_package_name = $::operatingsystem ? {
/OpenSuSE/ => 'mysql-community-server-client',
/(SLES|SLED)/ => 'mysql-client',
}
$server_package_name = $::operatingsystem ? {
/OpenSuSE/ => 'mysql-community-server',
/(SLES|SLED)/ => 'mysql',
case $::operatingsystem {
'OpenSuSE': {
$client_package_name = 'mysql-community-server-client'
$server_package_name = 'mysql-community-server'
$basedir = '/usr'
}
'SLES','SLED': {
if $::operatingsystemmajrelease >= 12 {
$client_package_name = 'mariadb-client'
$server_package_name = 'mariadb'
$basedir = undef
} else {
$client_package_name = 'mysql-client'
$server_package_name = 'mysql'
$basedir = '/usr'
}
}
default: {
fail("Unsupported platform: puppetlabs-${module_name} currently doesn't support ${::operatingsystem}")
}
}
$basedir = '/usr'
$config_file = '/etc/my.cnf'
$includedir = '/etc/my.cnf.d'
$datadir = '/var/lib/mysql'
Expand Down

0 comments on commit 137d0db

Please sign in to comment.