2 #Set the http module option
4 http_option = "#--module=http"
6 http_option = "--module=http"
9 execute "create-jetty-modules" do
10 command "java -jar #{ENV['JETTY_HOME']}/start.jar --add-to-start=deploy && java -jar #{ENV['JETTY_HOME']}/start.jar --create-startd --add-to-start=http,https,setuid,rewrite"
11 cwd "#{ENV['JETTY_BASE']}"
15 template "http-ini" do
16 path "#{ENV['JETTY_BASE']}/start.d/http.ini"
18 owner "#{ENV['JETTY_USER']}"
19 group "#{ENV['JETTY_GROUP']}"
22 :http_option => http_option ,
23 :http_port => "#{node['FE'][:http_port]}"
27 template "https-ini" do
28 path "#{ENV['JETTY_BASE']}/start.d/https.ini"
29 source "https-ini.erb"
30 owner "#{ENV['JETTY_USER']}"
31 group "#{ENV['JETTY_GROUP']}"
33 variables :https_port => "#{node['FE'][:https_port]}"
36 template "jetty-rewrite" do
37 path "#{ENV['JETTY_BASE']}/etc/rewrite-root-to-sdc1.xml"
38 source "FE-jetty-rewrite.yaml.erb"
39 owner "#{ENV['JETTY_USER']}"
40 group "#{ENV['JETTY_GROUP']}"
45 path "#{ENV['JETTY_BASE']}/start.d/ssl.ini"
47 owner "#{ENV['JETTY_USER']}"
48 group "#{ENV['JETTY_GROUP']}"
51 :https_port => "#{node['FE'][:https_port]}" ,
52 :jetty_keystore_pwd => "#{node['jetty'][:keystore_pwd]}" ,
53 :jetty_keymanager_pwd => "#{node['jetty'][:keymanager_pwd]}" ,
54 :jetty_truststore_pwd => "#{node['jetty'][:truststore_pwd]}"