5 be_port = node['BE']['https_port']
6 if node['BE-init']['tls_cert'] && node['BE-init']['tls_key']
7 tls_key = "--tls_key " + node['BE-init']['tls_key']
8 tls_cert = "--tls_cert " + node['BE-init']['tls_cert']
9 if node['BE-init']['tls_password']
10 tls_key_pw = "--tls_key_pw " + node['BE-init']['tls_password']
13 if node['BE-init']['ca_cert']
14 ca_cert = "--ca_cert " + node['BE-init']['ca_cert']
19 be_port = node['BE']['http_port']
23 basic_auth_enabled = node['basic_auth']['enabled']
24 basic_auth_user = node['basic_auth']['user_name']
25 basic_auth_pass = node['basic_auth']['user_pass']
27 basic_auth_config = "--header " + Base64.strict_encode64(basic_auth_user + ":" + basic_auth_pass)
29 # set default user configuration file
30 basic_auth_config = ""
34 execute "executing-check_backend_health" do
35 command "sdccheckbackend -i #{node['Nodes']['BE']} -p #{be_port} #{basic_auth_config} #{https_flag} #{tls_cert} #{tls_key} #{tls_key_pw} #{ca_cert}"