on EL7 there is now mariadb
This commit is contained in:
parent
c06abd681c
commit
553831bf34
2 changed files with 19 additions and 4 deletions
|
@ -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'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue