summaryrefslogtreecommitdiffstats
path: root/docs/guides/onap-developer
diff options
context:
space:
mode:
Diffstat (limited to 'docs/guides/onap-developer')
0 files changed, 0 insertions, 0 deletions
#n31'>31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
jetty_base="/var/lib/jetty"
jetty_home="/usr/local/jetty"

###### create Jetty modules
bash "create-jetty-modules" do
cwd "#{jetty_base}"
code <<-EOH
   cd "#{jetty_base}"
   java -jar "/#{jetty_home}"/start.jar --add-to-start=deploy
   java -jar "/#{jetty_home}"/start.jar --add-to-startd=http,https,logging,setuid
EOH
not_if "ls /#{jetty_base}/start.d/https.ini"
end


###### configure Jetty modules
template "FE-http-ini" do
   path "/#{jetty_base}/start.d/http.ini"
   source "FE-http-ini.erb"
   owner "jetty"
   group "jetty"
   mode "0755"
   variables :FE_http_port => "#{node['FE'][:http_port]}"
end


template "FE-https-ini" do
   path "/#{jetty_base}/start.d/https.ini"
   source "FE-https-ini.erb"
   owner "jetty"
   group "jetty"
   mode "0755"
   variables :FE_https_port => "#{node['FE'][:https_port]}"
end


template "ssl-ini" do
   path "/#{jetty_base}/start.d/ssl.ini"
   source "ssl-ini.erb"
   owner "jetty"
   group "jetty"
   mode "0755"
   variables :https_port => "#{node['FE'][:https_port]}"
end