Fixing error when disabling service management and the service does not exist
This commit is contained in:
parent
51950bf2d1
commit
3a29c5e552
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