diff options
Diffstat (limited to 'catalog-fe/sdc-frontend/chef-repo/cookbooks/sdc-catalog-fe/recipes')
-rw-r--r-- | catalog-fe/sdc-frontend/chef-repo/cookbooks/sdc-catalog-fe/recipes/FE_7_create_jetty_modules.rb | 34 |
1 files changed, 24 insertions, 10 deletions
diff --git a/catalog-fe/sdc-frontend/chef-repo/cookbooks/sdc-catalog-fe/recipes/FE_7_create_jetty_modules.rb b/catalog-fe/sdc-frontend/chef-repo/cookbooks/sdc-catalog-fe/recipes/FE_7_create_jetty_modules.rb index 32b121eefd..6c782428b0 100644 --- a/catalog-fe/sdc-frontend/chef-repo/cookbooks/sdc-catalog-fe/recipes/FE_7_create_jetty_modules.rb +++ b/catalog-fe/sdc-frontend/chef-repo/cookbooks/sdc-catalog-fe/recipes/FE_7_create_jetty_modules.rb @@ -1,3 +1,12 @@ +# +#Set the http module option +if node['disableHttp'] + http_option = "#--module=http" +else + http_option = "--module=http" +end + + bash "create-jetty-modules" do cwd "#{ENV['JETTY_BASE']}" code <<-EOH @@ -8,24 +17,26 @@ EOH end - -template "FE-http-ini" do +template "http-ini" do path "#{ENV['JETTY_BASE']}/start.d/http.ini" - source "FE-http-ini.erb" + source "http-ini.erb" owner "jetty" group "jetty" mode "0755" - variables :FE_http_port => "#{node['FE'][:http_port]}" + variables ({ + :http_option => http_option , + :http_port => "#{node['FE'][:http_port]}" + }) end -template "FE-https-ini" do +template "https-ini" do path "#{ENV['JETTY_BASE']}/start.d/https.ini" - source "FE-https-ini.erb" + source "https-ini.erb" owner "jetty" group "jetty" mode "0755" - variables :FE_https_port => "#{node['FE'][:https_port]}" + variables :https_port => "#{node['FE'][:https_port]}" end @@ -35,7 +46,10 @@ template "ssl-ini" do owner "jetty" group "jetty" mode "0755" - variables :https_port => "#{node['FE'][:https_port]}" + variables ({ + :https_port => "#{node['FE'][:https_port]}" , + :jetty_keystore_pwd => "#{node['jetty'][:keystore_pwd]}" , + :jetty_keymanager_pwd => "#{node['jetty'][:keymanager_pwd]}" , + :jetty_truststore_pwd => "#{node['jetty'][:truststore_pwd]}" + }) end - - |