blob: 8d42c26acc3e55544d3d0152f1602b2f7f65e85c (
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['BE'][:https_port]}"
else
protocol = "http"
port = "#{node['BE'][:http_port]}"
end
template "/var/lib/ready-probe.sh" do
source "ready-probe.sh.erb"
sensitive true
mode 0755
variables({
:protocol => protocol,
:port => port
})
end
|