New normativeType Allotted Resource & Recepies
[sdc.git] / sdc-os-chef / sdc-backend / chef-repo / cookbooks / sdc-catalog-be / recipes / BE_4_jetty_Modules.rb
1 jetty_base="/var/lib/jetty"
2 jetty_home="/usr/local/jetty"
3
4 ###### create Jetty modules
5 bash "create-jetty-modules" do
6 cwd "#{jetty_base}"
7 code <<-EOH
8    cd "#{jetty_base}"
9    java -jar "/#{jetty_home}"/start.jar --add-to-start=deploy
10    java -jar "/#{jetty_home}"/start.jar --add-to-startd=http,https,logging,setuid
11 EOH
12 not_if "ls /#{jetty_base}/start.d/https.ini"
13 end
14
15 template "ssl-ini" do
16    path "/#{jetty_base}/start.d/ssl.ini"
17    source "ssl-ini.erb"
18    owner "jetty"
19    group "jetty"
20    mode "0755"
21    variables :https_port => "#{node['BE'][:https_port]}"
22 end