blob: e35caed5b1a69132628a50fe7abc3298f4261855 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
if node['disableHttp']
protocol = "https"
https_flag = "--https"
be_port = node['BE']['https_port']
else
protocol = "http"
https_flag = ""
be_port = node['BE']['http_port']
end
bash "executing-check_backend_health" do
code <<-EOH
sdccheckbackend -i #{node['Nodes']['BE']} -p #{be_port} #{https_flag}
rc=$?
if [[ $rc != 0 ]]; then exit $rc; fi
EOH
returns [0]
end
|