1 #Set the http module option
3 http_option = "#--module=http"
5 http_option = "--module=http"
9 bash "create-jetty-modules" do
10 cwd "#{ENV['JETTY_BASE']}"
12 cd "#{ENV['JETTY_BASE']}"
13 java -jar "#{ENV['JETTY_HOME']}"/start.jar --add-to-start=deploy
14 java -jar "#{ENV['JETTY_HOME']}"/start.jar --create-startd --add-to-start=http,https,console-capture,setuid
19 template "http-ini" do
20 path "#{ENV['JETTY_BASE']}/start.d/http.ini"
26 :http_option => http_option ,
27 :http_port => "#{node['BE'][:http_port]}"
33 template "https-ini" do
34 path "#{ENV['JETTY_BASE']}/start.d/https.ini"
35 source "https-ini.erb"
39 variables :https_port => "#{node['BE'][:https_port]}"
44 path "#{ENV['JETTY_BASE']}/start.d/ssl.ini"
50 :https_port => "#{node['BE'][:https_port]}" ,
51 :jetty_keystore_pwd => "#{node['jetty'][:keystore_pwd]}" ,
52 :jetty_keymanager_pwd => "#{node['jetty'][:keymanager_pwd]}" ,
53 :jetty_truststore_pwd => "#{node['jetty'][:truststore_pwd]}"