1 jetty_base = "#{node['JETTY_BASE']}"
2 jetty_home = "#{node['JETTY_HOME']}"
4 #Set the http module option
6 http_option = "#--module=http"
8 http_option = "--module=http"
12 printf("DEBUG: [%s]:[%s] disableHttp=[%s], http_option=[%s] !!! \n", cookbook_name, recipe_name, node['disableHttp'], http_option )
15 directory "Jetty_etcdir_creation" do
16 path "/#{jetty_base}/etc"
25 cookbook_file "/#{jetty_base}/etc/keystore" do
33 cookbook_file "/#{jetty_base}/etc/truststore" do
40 bash "create-jetty-modules" do
44 java -jar "/#{jetty_home}"/start.jar --add-to-start=deploy
45 java -jar "/#{jetty_home}"/start.jar --add-to-startd=http,https,logging,setuid
49 # configure Jetty modules
50 template "http-ini" do
51 path "/#{jetty_base}/start.d/http.ini"
57 :http_option => http_option ,
58 :http_port => "#{node['DCAE']['BE'][:http_port]}"
62 template "https-ini" do
63 path "/#{jetty_base}/start.d/https.ini"
64 source "https-ini.erb"
69 :https_port => "#{node['DCAE']['BE'][:https_port]}"
74 path "/#{jetty_base}/start.d/ssl.ini"
80 :https_port => "#{node['DCAE']['BE'][:https_port]}" ,
81 :jetty_keystore_pwd => "#{node['jetty'][:keystore_pwd]}" ,
82 :jetty_keymanager_pwd => "#{node['jetty'][:keymanager_pwd]}" ,
83 :jetty_truststore_pwd => "#{node['jetty'][:truststore_pwd]}"