3769a1f723d3d9e4e3cc1f2bd0cd5c81a6db52fb
[sdc.git] /
1 if ENV['FE_URL'] && !ENV['FE_URL'].empty?
2     fe_url="#{ENV['FE_URL']}"
3 elsif  node['disableHttp']
4     fe_url="https://#{node['Nodes']['FE']}:#{node['FE'][:https_port]}"
5 else
6     fe_url="http://#{node['Nodes']['FE']}:#{node['FE'][:http_port]}"
7 end
8
9
10 template "webseal.conf" do
11    path "#{ENV['JETTY_BASE']}/config/sdc-simulator/webseal.conf"
12    source "SDC-Simulator-webseal.conf.erb"
13    owner "#{ENV['JETTY_USER']}"
14    group "#{ENV['JETTY_GROUP']}"
15    mode "0755"
16    variables({
17       :fe_url  =>"#{fe_url}"
18    })
19 end