Merge pull request #787 from obi11235/master
Fixing error when disabling service management and the service does not exist
This commit is contained in:
commit
45419fde6d
1 changed files with 7 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue