module-mysql/manifests/server/centos.pp
2015-01-10 01:50:39 +01:00

35 lines
734 B
Puppet

# centos specific things
class mysql::server::centos inherits mysql::server::clientpackage {
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',
}
file{
'/etc/mysql':
ensure => directory,
owner => root,
group => 0,
mode => '0644';
'/etc/mysql/conf.d':
ensure => directory,
recurse => true,
purge => true,
force => true,
owner => root,
group => 0,
mode => '0644',
notify => Service['mysql'];
}
}