summaryrefslogtreecommitdiffstats
path: root/openecomp-be/dist/sdc-onboard-backend-docker/artifacts/chef-repo/cookbooks/sdc-onboard-backend/recipes/ON_6_prepareProbeFile.rb
blob: 8d77d61481d01894995ee327204329a131b01641 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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/jetty/ready-probe.sh" do
  source "ready-probe.sh.erb"
  sensitive true
  mode 0755
  variables({
    :protocol => protocol,
    :port => port
  })
end