aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-fe/sdc-frontend/chef-repo/cookbooks/sdc-catalog-fe/recipes/FE_8_prepareProbeFile.rb
blob: 2ce61b9c09919d5fe1ad1dde3585e21109fc0878 (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['FE'][:https_port]}"
else
  protocol = "http"
  port = "#{node['FE'][: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