ce43899af3
The mysqld log-error setting may be passed by override_options, but server/service.pp was not using the overridden value. This fixes that.
27 lines
651 B
Puppet
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'] ]
|
|
}
|
|
|
|
}
|