8d42c26acc3e55544d3d0152f1602b2f7f65e85c
[sdc.git] / catalog-be / sdc-backend / chef-repo / cookbooks / sdc-catalog-be / recipes / BE_9_prepareProbeFile.rb
1 if node[:disableHttp]
2   protocol = "https"
3   port = "#{node['BE'][:https_port]}"
4 else
5   protocol = "http"
6   port = "#{node['BE'][:http_port]}"
7 end
8
9 template "/var/lib/ready-probe.sh" do
10   source "ready-probe.sh.erb"
11   sensitive true
12   mode 0755
13   variables({
14     :protocol => protocol,
15     :port => port
16   })
17 end