on EL7 there is now mariadb

This commit is contained in:
mh 2015-01-10 01:50:39 +01:00
parent c06abd681c
commit 553831bf34
2 changed files with 19 additions and 4 deletions

View file

@ -1,7 +1,13 @@
# basic mysql client stuff
class mysql::client::base {
package { 'mysql':
ensure => present,
alias => 'mysql-client',
ensure => present,
alias => 'mysql-client',
}
if $::operatingsystem in ['RedHat', 'CentOS'] and
$::operatingsystemmajrelease > 6 {
Package[mysql]{
name => 'mariadb'
}
}
}

View file

@ -1,7 +1,16 @@
# centos specific things
class mysql::server::centos inherits mysql::server::clientpackage {
Service['mysql']{
name => 'mysqld',
if $::operatingsystemmajrelease > 6 {
Package['mysql-server']{
name => 'mariadb-server',
}
Service['mysql']{
name => 'mariadb',
}
} else {
Service['mysql']{
name => 'mysqld',
}
}
File['mysql_main_cnf']{
path => '/etc/my.cnf',