diff --git a/manifests/service.pp b/manifests/service.pp index 0a071e9d..2b87c888 100644 --- a/manifests/service.pp +++ b/manifests/service.pp @@ -39,7 +39,7 @@ service { "${foreman_service}.socket": ensure => bool2str($deployment_mode == 'package', $foreman_service_ensure, 'stopped'), - enable => bool2str($deployment_mode == 'package', $foreman_service_enable, 'false'), + enable => $foreman_service_enable and $deployment_mode == 'package', } service { $foreman_service: