Merge pull request #787 from obi11235/master

Fixing error when disabling service management and the service does not exist
This commit is contained in:
Igor Galić 2015-12-15 17:28:09 +01:00
commit 45419fde6d

View file

@ -26,11 +26,13 @@ class mysql::server::service {
}
}
service { 'mysqld':
ensure => $service_ensure,
name => $mysql::server::service_name,
enable => $mysql::server::real_service_enabled,
provider => $mysql::server::service_provider,
if $mysql::server::real_service_manage {
service { 'mysqld':
ensure => $service_ensure,
name => $mysql::server::service_name,
enable => $mysql::server::real_service_enabled,
provider => $mysql::server::service_provider,
}
}
# only establish ordering between service and package if