Code Review
/
sdc.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
Refactoring the check backend, create consumers
[sdc.git]
/
catalog-be
/
sdc-backend-init
/
chef-repo
/
cookbooks
/
sdc-catalog-be-setup
/
recipes
/
2_check_Backend.rb
1
if node['disableHttp']
2
protocol = "https"
3
https_flag = "--https"
4
be_port = node['BE']['https_port']
5
else
6
protocol = "http"
7
https_flag = ""
8
be_port = node['BE']['http_port']
9
end
10
11
bash "executing-check_backend_health" do
12
code <<-EOH
13
sdccheckbackend -i #{node['Nodes']['BE']} -p #{be_port} #{https_flag}
14
rc=$?
15
if [[ $rc != 0 ]]; then exit $rc; fi
16
EOH
17
returns [0]
18
end