2013-09-09 17:34:39 +02:00
|
|
|
#
|
|
|
|
class mysql::server::service {
|
|
|
|
|
2013-09-13 19:04:42 +02:00
|
|
|
if $mysql::server::real_service_enabled {
|
2013-09-09 17:34:39 +02:00
|
|
|
$service_ensure = 'running'
|
|
|
|
} else {
|
|
|
|
$service_ensure = 'stopped'
|
|
|
|
}
|
|
|
|
|
2013-09-13 19:04:42 +02:00
|
|
|
if $mysql::server::real_service_manage {
|
2013-09-09 17:34:39 +02:00
|
|
|
service { 'mysqld':
|
|
|
|
ensure => $service_ensure,
|
|
|
|
name => $mysql::server::service_name,
|
2013-09-13 19:04:42 +02:00
|
|
|
enable => $mysql::server::real_service_enabled,
|
2013-09-09 17:34:39 +02:00
|
|
|
provider => $mysql::server::service_provider,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|