module-puppetlabs-mysql/manifests/server/service.pp
Hunter Haugen ce43899af3 (MODULES-1804) Allow override of log-error
The mysqld log-error setting may be passed by override_options, but
server/service.pp was not using the overridden value. This fixes that.
2015-02-27 09:54:00 -08:00

27 lines
651 B
Puppet

#
class mysql::server::service {
$options = $mysql::server::options
if $mysql::server::real_service_manage {
if $mysql::server::real_service_enabled {
$service_ensure = 'running'
} else {
$service_ensure = 'stopped'
}
}
file { $options['mysqld']['log-error']:
ensure => present,
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,
require => [ File['mysql-config-file'], Package['mysql-server'] ]
}
}