1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
if node[:disableHttp] protocol = "https" port = "#{node['FE'][:https_port]}" else protocol = "http" port = "#{node['FE'][: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