aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-be/sdc-backend-init/chef-repo/cookbooks/sdc-catalog-be-setup/recipes/2_check_Backend.rb
blob: b929637b1a06bbc415f21ee0e9c5813954b7d7a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
template "/tmp/check_Backend_Health.py" do
    source "check_Backend_Health.py.erb"
    sensitive true
    mode 0755
    variables({
      :be_ip => node['Nodes']['BE'],
      :be_port => node['BE']['http_port']
    })
end

bash "excuting-check_Backend_Health" do
   code <<-EOH
     python /tmp/check_Backend_Health.py
     rc=$?
     if [[ $rc != 0 ]]; then exit $rc; fi
   EOH
end