From 8fcf75c9063dc112256efa02322025f8d17e2ad9 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Mon, 21 Feb 2022 23:27:59 +0900 Subject: [PATCH] Do not define service resource when service management is disabled Change-Id: Ia99f99aef9d2f77dd7e57d3256de879267a4da01 --- manifests/generic_service.pp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/manifests/generic_service.pp b/manifests/generic_service.pp index d3f3d8c3..30c460a1 100644 --- a/manifests/generic_service.pp +++ b/manifests/generic_service.pp @@ -77,14 +77,14 @@ define trove::generic_service( } else { $service_ensure = 'stopped' } - } - service { $trove_title: - ensure => $service_ensure, - name => $service_name, - enable => $enabled, - hasstatus => true, - tag => 'trove-service', + service { $trove_title: + ensure => $service_ensure, + name => $service_name, + enable => $enabled, + hasstatus => true, + tag => 'trove-service', + } } } }