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,console-capture,setuid"
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]}"
28 template "https-ini" do
29 path "#{ENV['JETTY_BASE']}/start.d/https.ini"
30 source "https-ini.erb"
31 owner "#{ENV['JETTY_USER']}"
32 group "#{ENV['JETTY_GROUP']}"
34 variables :https_port => "#{node['FE'][:https_port]}"
39 path "#{ENV['JETTY_BASE']}/start.d/ssl.ini"
41 owner "#{ENV['JETTY_USER']}"
42 group "#{ENV['JETTY_GROUP']}"
45 :https_port => "#{node['FE'][:https_port]}" ,
46 :jetty_keystore_pwd => "#{node['jetty'][:keystore_pwd]}" ,
47 :jetty_keymanager_pwd => "#{node['jetty'][:keymanager_pwd]}" ,
48 :jetty_truststore_pwd => "#{node['jetty'][:truststore_pwd]}"