Fully HTTPS support in the webseal-simulator
[sdc.git] / utils / webseal-simulator / sdc-simulator / chef-repo / cookbooks / sdc-simulator / recipes / SDC_Simulator_2_setup_configuration.rb
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