c47d1fb586
On Fedora-20+ and RHEL-7+ mysqld service does not work any more and has been replaced by mariadb service. This patch changes all parameters accordingly.
23 lines
521 B
Puppet
23 lines
521 B
Puppet
#
|
|
class mysql::server::service {
|
|
|
|
if $mysql::server::real_service_enabled {
|
|
$service_ensure = 'running'
|
|
} else {
|
|
$service_ensure = 'stopped'
|
|
}
|
|
|
|
if $mysql::server::real_service_manage {
|
|
file { $mysql::params::log_error:
|
|
owner => 'mysql',
|
|
group => 'mysql',
|
|
}
|
|
service { 'mysqld':
|
|
ensure => $service_ensure,
|
|
name => $mysql::server::service_name,
|
|
enable => $mysql::server::real_service_enabled,
|
|
provider => $mysql::server::service_provider,
|
|
}
|
|
}
|
|
|
|
}
|