Fixing error when disabling service management and the service does not exist

This commit is contained in:
Paul 2015-12-14 16:52:37 -05:00
parent 51950bf2d1
commit 3a29c5e552

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