diff options
author | k.kedron <k.kedron@partner.samsung.com> | 2019-08-29 17:05:58 +0200 |
---|---|---|
committer | Ofir Sonsino <ofir.sonsino@intl.att.com> | 2019-08-30 08:01:20 +0000 |
commit | 6c86599c0352c5d86025495c6379132a0db52934 (patch) | |
tree | 56e3630e4b0ed68cf604acef82a7723fb92fa9ec /openecomp-be/dist/sdc-onboard-backend-docker/artifacts/chef-repo/cookbooks/sdc-onboard-backend/recipes | |
parent | 3643cc5c5876f8ae43e89e9f437d4e9a4287f2fc (diff) |
Update ready-probe file
Update ready-probe file to support the https mode.
Issue-ID: SDC-2548
Signed-off-by: Krystian Kedron <k.kedron@partner.samsung.com>
Change-Id: I78328d7575d202d1d241785e07fb57573ffe2739
Diffstat (limited to 'openecomp-be/dist/sdc-onboard-backend-docker/artifacts/chef-repo/cookbooks/sdc-onboard-backend/recipes')
-rw-r--r-- | openecomp-be/dist/sdc-onboard-backend-docker/artifacts/chef-repo/cookbooks/sdc-onboard-backend/recipes/ON_6_prepareProbeFile.rb | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/openecomp-be/dist/sdc-onboard-backend-docker/artifacts/chef-repo/cookbooks/sdc-onboard-backend/recipes/ON_6_prepareProbeFile.rb b/openecomp-be/dist/sdc-onboard-backend-docker/artifacts/chef-repo/cookbooks/sdc-onboard-backend/recipes/ON_6_prepareProbeFile.rb index edc8f9eebf..c8102e43ee 100644 --- a/openecomp-be/dist/sdc-onboard-backend-docker/artifacts/chef-repo/cookbooks/sdc-onboard-backend/recipes/ON_6_prepareProbeFile.rb +++ b/openecomp-be/dist/sdc-onboard-backend-docker/artifacts/chef-repo/cookbooks/sdc-onboard-backend/recipes/ON_6_prepareProbeFile.rb @@ -1,9 +1,17 @@ +if node[:disableHttp] + protocol = "https" + port = "#{node['ONBOARDING_BE'][:https_port]}" +else + protocol = "http" + port = "#{node['ONBOARDING_BE'][:http_port]}" +end + template "/var/lib/ready-probe.sh" do source "ready-probe.sh.erb" sensitive true mode 0755 variables({ - :onboard_port => "#{node['ONBOARDING_BE'][:http_port]}", - :ssl_port => "#{node['ONBOARDING_BE'][:https_port]}" - }) + :protocol => protocol, + :port => port + }) end |