Revert "Revert "oran-shell-release: release image for F""
[pti/rtp.git] / meta-starlingx / meta-stx-cloud / recipes-support / puppet / files / puppet-barbican / puppet-barbican-do-not-fail-for-poky-stx.patch
1 From fd7e40080bc5681376d91aff3956004c6ad2bfc7 Mon Sep 17 00:00:00 2001
2 From: Jackie Huang <jackie.huang@windriver.com>
3 Date: Sat, 14 Mar 2020 20:12:45 +0800
4 Subject: [PATCH] puppet-barbican: do not fail for poky-stx
5
6 poky-stx is set as Debian osfamily, but we still use barbican-api
7 as $service_name, so do not fail for it.
8
9 Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
10 ---
11  manifests/api.pp | 2 +-
12  1 file changed, 1 insertion(+), 1 deletion(-)
13
14 diff --git a/manifests/api.pp b/manifests/api.pp
15 index a31088b..6716588 100644
16 --- a/manifests/api.pp
17 +++ b/manifests/api.pp
18 @@ -486,7 +486,7 @@ the future release. Please use barbican::api::package_ensure instead.")
19    }
20  
21    if $service_name == 'barbican-api' {
22 -    if $::osfamily == 'Debian' {
23 +    if $::osfamily == 'Debian' and $::operatingsystem != 'poky-stx' {
24        fail('On Debian family the service_name must be set to httpd as there is no eventlet init script.')
25      }
26      service { 'barbican-api':
27 -- 
28 2.7.4
29