bf859f13a384ad0ee82bd4a4f7b9cd6f8090c63c
[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 "jetty"
14    group "jetty"
15    mode "0755"
16    variables({
17       :fe_url  =>"#{fe_url}"
18    })
19 end