2 #Set the http module option
4 http_option = "#--module=http"
6 http_option = "--module=http"
10 bash "create-jetty-modules" do
11 cwd "#{ENV['JETTY_BASE']}"
13 cd "#{ENV['JETTY_BASE']}"
14 java -jar "#{ENV['JETTY_HOME']}"/start.jar --add-to-start=deploy
15 java -jar "#{ENV['JETTY_HOME']}"/start.jar --create-startd --add-to-start=http,https,console-capture,setuid
20 template "http-ini" do
21 path "#{ENV['JETTY_BASE']}/start.d/http.ini"
27 :http_option => http_option ,
28 :http_port => "#{node['FE'][: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['FE'][:https_port]}"
44 path "#{ENV['JETTY_BASE']}/start.d/ssl.ini"
50 :https_port => "#{node['FE'][: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]}"