1 #Set the http module option
3 http_option = "#--module=http"
5 http_option = "--module=http"
8 execute "create-jetty-modules" do
9 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"
10 cwd "#{ENV['JETTY_BASE']}"
14 template "http-ini" do
15 path "#{ENV['JETTY_BASE']}/start.d/http.ini"
17 owner "#{ENV['JETTY_USER']}"
18 group "#{ENV['JETTY_GROUP']}"
21 :http_option => http_option ,
22 :http_port => "#{node['BE'][:http_port]}"
27 template "jetty-rewrite" do
28 path "#{ENV['JETTY_BASE']}/etc/rewrite-root-to-swagger-ui.xml"
29 source "BE-jetty-rewrite.yaml.erb"
30 owner "#{ENV['JETTY_USER']}"
31 group "#{ENV['JETTY_GROUP']}"
36 template "https-ini" do
37 path "#{ENV['JETTY_BASE']}/start.d/https.ini"
38 source "https-ini.erb"
39 owner "#{ENV['JETTY_USER']}"
40 group "#{ENV['JETTY_GROUP']}"
42 variables :https_port => "#{node['BE'][:https_port]}"
46 path "#{ENV['JETTY_BASE']}/start.d/ssl.ini"
48 owner "#{ENV['JETTY_USER']}"
49 group "#{ENV['JETTY_GROUP']}"
52 :https_port => "#{node['BE'][:https_port]}" ,
53 :keystore_path => "#{node['BE'][:keystore_path]}" ,
54 :keystore_password => "#{node['BE'][:keystore_password]}" ,
55 :truststore_path => "#{node['BE'][:truststore_path]}" ,
56 :truststore_password => "#{node['BE'][:truststore_password]}"